SetSpawnInfo
#3

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
Two dimensional array - you need to specify your choice
new array[x][y] = X;
array[x] = UNKNOWN;
You need to add [y] to your array.
Here is a fixed code:
PHP код:
new rand random(sizeof(HumanSpawns));
SetSpawnInfo(playerid0pInfo[playerid][pSkin], HumanSpawns[random][0], HumanSpawns[random][1], HumanSpawns[random][2], HumanSpawns[random][3], pInfo[playerid][pWeap1], pInfo[playerid][pAmmo1], pInfo[playerid][pWeap2], pInfo[playerid][pAmmo2], pInfo[playerid][pWeap3], pInfo[playerid][pAmmo3]); 
We didn't use the variable rand. So it should be HumanSpawns[rand][0] and so on and so forth, right?
Reply


Messages In This Thread
SetSpawnInfo - by NealPeteros - 31.10.2016, 02:04
Re: SetSpawnInfo - by NeXoR - 31.10.2016, 02:08
Re: SetSpawnInfo - by NealPeteros - 31.10.2016, 02:18
Re: SetSpawnInfo - by NeXoR - 31.10.2016, 02:27

Forum Jump:


Users browsing this thread: 1 Guest(s)