Сообщение от
Londlem
Вместо вызова CallLocalFunction:
PHP код:
cmd::on(playerid, "");
Код HTML:
C:\Documents and Settings\Admin-PC\Ìîè äîêóìåíòû\Downloads\mod\gamemodes\roleplay.pwn(16932) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Admin-PC\Ìîè äîêóìåíòû\Downloads\mod\gamemodes\roleplay.pwn(16932) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin-PC\Ìîè äîêóìåíòû\Downloads\mod\gamemodes\roleplay.pwn(16932) : error 017: undefined symbol "on"
C:\Documents and Settings\Admin-PC\Ìîè äîêóìåíòû\Downloads\mod\gamemodes\roleplay.pwn(16932) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
вот сама команда:
PHP код:
CMD:on(playerid,params[])
{
if(GetPVarInt(playerid,"used") == 0)
{
new p = GetPlayerVehicleID(playerid);
obj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
AttachPlayerObjectToVehicle(playerid,obj[playerid],p,-0.6, -0.3, 0.490000, 0.000000, 0.000000, 0.000000);
AttachCameraToPlayerObject(playerid,obj[playerid]);
SetPVarInt(playerid,"used",1);
}
else if(GetPVarInt(playerid,"used") == 1)
{
SetCameraBehindPlayer(playerid);
DestroyPlayerObject(playerid,obj[playerid]);
SetPVarInt(playerid,"used",0);
}
return 1;
}
Прошу помочь!