new Float:randomSpawns_DayZSA_Part1[4][4] =
{
{2899.3059 ,-1624.4517 ,11.8779},
{2457.3726 ,-1666.8768 ,14.1584},
{2093.8362 ,-1773.7025 ,14.3506},
(2679.3730 ,-1540.8654 ,25.6224)
};
if(pInfo[playerid][pFirstSpawn] == 1)
{
new randSpawn = random(sizeof(randomSpawns_DayZSA_Part1));
SetPlayerPos_Allow(playerid,randomSpawns_DayZSA_Part1[randSpawn][0],randomSpawns_DayZSA_Part1[randSpawn][1],randomSpawns_DayZSA_Part1[randSpawn][2]);
new randSpawn = random(sizeof(randomSpawns_DayZSA_Part1));
SetPlayerPos_Allow(playerid,randomSpawns_DayZSA_Part1[randSpawn][0],randomSpawns_DayZSA_Part1[randSpawn][1],randomSpawns_DayZSA_Part1[randSpawn][2]);
new randSpawn = random(sizeof(randomSpawns_DayZSA_Part1));
SetSpawnInfo(playerid,randomSpawns_DayZSA_Part1[randSpawn][0],randomSpawns_DayZSA_Part1[randSpawn][1],randomSpawns_DayZSA_Part1[randSpawn][2]);
change this
PHP код:
PHP код:
|
SpawnPlayer(playerid);
: warning 213: tag mismatch
: warning 213: tag mismatch
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
: warning 202: number of arguments does not match definition
SetSpawnInfo( playerid, 0, 0, randomSpawns_DayZSA_Part1[randSpawn][0],randomSpawns_DayZSA_Part1[randSpawn][1],randomSpawns_DayZSA_Part1[randSpawn][2], 0, 0, 0, 0, 0, 0, 0 );
SpawnPlayer(playerid);
Float, Float:y, Float:z,
But at my Float:randomSpawns_DayZSA_Part1[4][4] = i already have 4 XYZ coordonates. and skin i need to edit, right? |
SetSpawnInfo( playerid, 0, /*Skin id here*/, randomSpawns_DayZSA_Part1[randSpawn][0],randomSpawns_DayZSA_Part1[randSpawn][1],randomSpawns_DayZSA_Part1[randSpawn][2], randomSpawns_DayZSA_Part1[randSpawn][3], 0, 0, 0, 0, 0, 0 );
function SetPlayerPos_Allow(playerid, Float:px_ab, Float:py_ab, Float:pz_ab)
{
abAllow[playerid] = 1;
defer ResetAB_Allow(playerid);
SetPlayerPos(playerid, px_ab, py_ab, pz_ab);
return 1;
}