10.06.2012, 15:50
i am getting those 3 errors:
and my code for it is
Quote:
C:\Users\Kajinth Thaas\Desktop\SACNR\gamemodes\SACNR.pwn(3222) : error 008: must be a constant expression; assumed zero C:\Users\Kajinth Thaas\Desktop\SACNR\gamemodes\SACNR.pwn(3233) : error 033: array must be indexed (variable "gTeam") C:\Users\Kajinth Thaas\Desktop\SACNR\gamemodes\SACNR.pwn(3235) : error 001: expected token: ",", but found "]" |
Quote:
new Teamspawn[3] = { // TEAM SPAWN... {1568.2250,-1693.5483,5.8906,177.0983}, {-1604.8442,732.9442,-5.2344,37.6041}, {2343.4553,2455.5994,14.9688,96.5022} }; public OnPlayerSpawn(playerid) { if(gTeam == TEAM_COPS) // this can be different in your gm... { SetPlayerPos(playerid,Teamspawn[random(sizeof(Teamspawn)]); } |