17.07.2013, 03:32
Quote:
error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\edku dreams\Desktop\MyScript\gamemodes\avt.pwn(333) : error 017: undefined symbol "COL_RED" C:\Documents and Settings\edku dreams\Desktop\MyScript\gamemodes\avt.pwn(333) : warning 215: expression has no effect C:\Documents and Settings\edku dreams\Desktop\MyScript\gamemodes\avt.pwn(333) : error 001: expected token: ";", but found "-identifier-" C:\Documents and Settings\edku dreams\Desktop\MyScript\gamemodes\avt.pwn(333) : fatal error 107: too many error messages on one line |
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerScore(playerid) < 1500)
{
if(GetVehicleModel(vehicleid) == 520)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "Only players with a score above 1500 can use Hydras.");
}
}
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetPlayerScore(playerid) < 1500)
{
if(GetVehicleModel(vehicleid) == 520)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "Only players with a score above 1500 can use Hydras.");
}
}
}
return 1;
}