25.08.2011, 16:05
I did it:
i got errors what to do?
C:\MRP\gamemodes\M-RP.pwn(8232) : error 017: undefined symbol "cmdtext"
C:\MRP\gamemodes\M-RP.pwn(8232) : error 036: empty statement
C:\MRP\gamemodes\M-RP.pwn(8234) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8236) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(823 : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8239) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8240) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8244) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8249) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8250) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8251) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(853 : warning 209: function "SetPlayerUnjail" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
What to do?
pawn Код:
if(strcmp(cmdtext, "/teleport", true)==0);
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), 215.4644,187.8192,1003.0313);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 178.7448);
SetCameraBehindPlayer(playerid);
}
else
{
SendClientMessage(playerid,0xFFFF00AA, "ERROR: You need to be the driver!");
}
}
else
{
SetPlayerPos(playerid, 215.4644,187.8192,1003.0313);
SetPlayerFacingAngle(playerid, 110.5445);
SetCameraBehindPlayer(playerid);
}
return 1;
}
C:\MRP\gamemodes\M-RP.pwn(8232) : error 017: undefined symbol "cmdtext"
C:\MRP\gamemodes\M-RP.pwn(8232) : error 036: empty statement
C:\MRP\gamemodes\M-RP.pwn(8234) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8236) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(823 : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8239) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8240) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8244) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8249) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8250) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(8251) : error 017: undefined symbol "playerid"
C:\MRP\gamemodes\M-RP.pwn(853 : warning 209: function "SetPlayerUnjail" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
What to do?