[HELP!]error 029: invalid expression, assumed zero - 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)
+--- Thread: [HELP!]error 029: invalid expression, assumed zero (
/showthread.php?tid=394998)
[HELP!]error 029: invalid expression, assumed zero -
Veeco - 24.11.2012
Code :
Quote:
public OnPlayerConnect(playerid)
{
if(PlayerData[playerid][pAdmin] < 1))
{
GivePlayerScore(playerid, 9000);
GivePlayerWeapon(playerid, 38, 50000);
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
}
return 1;
}
|
Quote:
enum pInfo
{
pAdmin
}
new PlayerData[MAX_PLAYERS][pInfo];
|
There is the codes.
The line i got errors on is :
Quote:
if(PlayerData[playerid][pAdmin] < 1))
{
|
Re: [HELP!]error 029: invalid expression, assumed zero -
RenSoprano - 24.11.2012
I made this today if you don't have a saving system this won't work