10.10.2014, 23:00
Hi, I have this:
I have this function:
I get an error here:
PHP код:
new Float:TeamSpawns[][4][4] = {
{
{1090.1176,1915.2543,10.8203,359.0264},
{1093.6993,1905.3907,16.4873,2.1364},
{1116.3743,1891.2225,10.8203,167.8679},
{1092.0170,1892.6232,10.8203,182.2814}
},
{
{-799.3118,1570.1510,27.0807,87.2953},
{-819.4633,1499.2266,19.7184,179.7295},
{-767.4883,1520.2850,26.7911,270.9103},
{-721.7050,1538.5356,40.4757,93.5855}
}
};
PHP код:
stock SetPlayerRandTeamPos(playerid, team)
{
new rand = random(sizeof(TeamSpawns[team]));
SetPlayerPos(playerid, TeamSpawns[team][rand][0], TeamSpawns[team][rand][1], TeamSpawns[team][rand][2]);
SetPlayerFacingAngle(playerid, TeamSpawns[team][rand][3]);
return 1;
}
PHP код:
new rand = random(sizeof(TeamSpawns[team]));