27.02.2010, 20:29
wtf is up with this code :
Errors :
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[grove1] || CarCheck == Cars[grove2] || CarCheck == Cars[grove3] || CarCheck == Cars[grove4] || CarCheck == Cars[grove5] || CarCheck == Cars[grove6] )
{
if(gTeam[playerid] != 15)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car.");
return 1;
}
}
else
{
return 1;
}
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[ballas1] || CarCheck == Cars[ballas2] || CarCheck == Cars[ballas3] || CarCheck == Cars[ballas4] || CarCheck == Cars[ballas5] || CarCheck == Cars[ballas6] || CarCheck == Cars[ballas7] )
{
if(gTeam[playerid] != 16)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You Don't have the keys for this car.");
return 1;
}
}
else
{
return 1;
}
}
Код:
C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(728) : error 001: expected token: "}", but found "-identifier-" C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(1719) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(1748) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(1784) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(1785) : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(1812) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2113) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2138) : error 004: function "SetPlayerToTeamColor" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2180) : error 004: function "SetPlayerCriminal" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2185) : error 004: function "SetPlayerCriminal" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2283) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2294) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2306) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2310) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2322) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2326) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2330) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2334) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2338) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2342) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2346) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2350) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2362) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2366) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2370) : error 004: function "PlayerToPoint" is not implemented C:\Users\Joe\Desktop\Extreme RP\gamemodes\logical-rp.pwn(2374) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.