[HELP!]error 029: invalid expression, assumed zero
#1

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))
{

Reply
#2

I made this today if you don't have a saving system this won't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)