PDA

View Full Version : [HELP!]error 029: invalid expression, assumed zero


Veeco
24/11/2012, 08:17 PM
Code :
public OnPlayerConnect(playerid)
{
if(PlayerData[playerid][pAdmin] < 1))
{
GivePlayerScore(playerid, 9000);
GivePlayerWeapon(playerid, 38, 50000);
SetPlayerHealth(playerid, 100000);
SetPlayerArmour(playerid, 100000);
}
return 1;
}
enum pInfo
{
pAdmin
}
new PlayerData[MAX_PLAYERS][pInfo];

There is the codes.

The line i got errors on is :
if(PlayerData[playerid][pAdmin] < 1))
{

RenSoprano
24/11/2012, 08:20 PM
I made this today if you don't have a saving system this won't work