06.04.2012, 19:54
I get these errors:
With this code:
What is the problem?
Код:
C:\Users\Keegan\Desktop\filterscripts\MWFFATeams.pwn(213) : error 001: expected token: ")", but found "{" C:\Users\Keegan\Desktop\filterscripts\MWFFATeams.pwn(221) : error 001: expected token: ")", but found "{" C:\Users\Keegan\Desktop\filterscripts\MWFFATeams.pwn(229) : error 001: expected token: ")", but found "{" C:\Users\Keegan\Desktop\filterscripts\MWFFATeams.pwn(237) : error 001: expected token: ")", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 432)
{
if(GetPlayerScore(playerid) < 50)
{ //Line 213
SendClientMessage(playerid, COLOR_RED, "You need to gain 50 score to drive Tanks");
RemovePlayerFromVehicle(playerid);
}
}
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 425)
{
if(GetPlayerScore(playerid) < 30)
{ //Line 221
SendClientMessage(playerid, COLOR_RED, "You need to gain 30 score to pilot Hunters");
RemovePlayerFromVehicle(playerid);
}
}
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 520)
{
if(GetPlayerScore(playerid) < 25)
{ //Line 229
SendClientMessage(playerid, COLOR_RED, "You need to gain 25 score to pilot Hydras");
RemovePlayerFromVehicle(playerid);
}
}
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 447)
{
if(GetPlayerScore(playerid) < 15)
{ //Line 237
SendClientMessage(playerid, COLOR_RED, "You need to gain 15 score to pilot Seasparrows");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
What is the problem?