Different spawn
#10

i am getting those 3 errors:
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 "]"

and my code for it is

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)]);
}

Reply


Messages In This Thread
Different spawn - by CrazyChoco - 10.06.2012, 08:26
AW: Different spawn - by Extremo - 10.06.2012, 08:28
Re: Different spawn - by CrazyChoco - 10.06.2012, 08:29
Re: Different spawn - by CrazyChoco - 10.06.2012, 08:36
Re: Different spawn - by StrangeLove - 10.06.2012, 09:28
Re: Different spawn - by CrazyChoco - 10.06.2012, 09:38
Re: Different spawn - by CrazyChoco - 10.06.2012, 14:41
Re: Different spawn - by leonardo1434 - 10.06.2012, 14:53
Re: Different spawn - by CrazyChoco - 10.06.2012, 15:43
Re: Different spawn - by CrazyChoco - 10.06.2012, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)