16.07.2012, 17:16
Hey this is a very little question about random spawns.
I want 2 or more random spawns sections I mean this:
I think its wrong and it is!
I got one error namely:
Ty,
I want 2 or more random spawns sections I mean this:
PHP код:
public OnPlayerSpawn(playerid)
{
switch(GetPlayerSkin(playerid))
{
case 105,106,107,269,270,271:
{
new rand = random(sizeof(gRandomSpawns));
SetPlayerPos(playerid, gRandomSpawns[rand][0], gRandomSpawns[rand][1], gRandomSpawns[rand][2]);
SetPlayerColor(playerid, 0x499C67FF);
}
}
switch(GetPlayerSkin(playerid))
{
case 102,103,104:
{
new rand = random(sizeof(bRandomSpawns));
SetPlayerPos(playerid, bRandomSpawns[rand][0], bRandomSpawns[rand][1], bRandomSpawns[rand][2]);
}
}
return 1;
}
I got one error namely:
PHP код:
C:\Users\Edward\Desktop\SA-MP Server Gangwars\pawno\GangWarsULv.03.pwn(348) : error 018: initialization data exceeds declared size
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.