14.05.2010, 22:55
Hi, I wanted to make an arry which contains the ammo of each player.
so i tried this:
here is the result of compiling:
any idea?
so i tried this:
Код:
new gAmmo[MAX_PLAYERS]; /* ... */ public OnGameModeInit() { AddPlayerClass(0,1438.4336,-926.9862,39.6477,168.6258,24,20,18,10,0,0); //spawn CJ AddPlayerClass(102, 1318.6892,-901.4059,39.5781,179.3070,24,20,39,10,0,0); //spawn Balla AddPlayerClass(107, 1334.2068,-984.2917,33.8966,262.7202,24,20,16,10,0,0); //spawn Grove gAmmo[playerid] = 20; } /* ... */ GivePlayerWeapon(playerid, 24, gAmmo[playerid]);
Код:
C:\Users\Jonni\Desktop\SA-MP Server\gamemodes\TheKillerzBeta.pwn(80) : error 017: undefined symbol "playerid"