Loads of errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Loads of errors (
/showthread.php?tid=130660)
Loads of errors -
ReactionGameServers - 27.02.2010
wtf is up with this code :
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;
}
}
Errors :
Код:
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.
Re: Loads of errors -
biltong - 27.02.2010
You're missing a } on line 729.
Re: Loads of errors -
Correlli - 27.02.2010
Missing bracket.
Re: Loads of errors -
ReactionGameServers - 27.02.2010
errrm these are the lines around that line
pawn Код:
enum TeamCars
{
grove1
grove2
grove3
grove4
grove5
grove6
ballas1
ballas2
ballas3
ballas4
ballas5
ballas6
ballas7
}
new Cars[TeamCars];
EDIT : FIXED THAT MISSING BRACKET BUT STILL GETTING LOADS OF ERRORS
EDIT 2 : FIXED IT A NEEDED ANOTHER } ON THE CODE