A little question about function new and stock
#6

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
So, i must type new PlayerPos[MAX_PLAYERS]; at any part of my script above the new Spawns{ } ; right?
....

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
new PlayerPos[MAX_PLAYERS];

somwhere
PlayerPos[playerid] = number_here_from_Spawns; // if you set 1 tp will be posx1

stock SetPos(playerid)
{
    new ID = PlayerPos[playerid] - 1;
    SetPlayerPos(playerid, Spawns[ID][0], Spawns[ID][1], Spawns[ID][2]);
}
Reply


Messages In This Thread
A little question about function new and stock - by fuckingcruse - 08.01.2016, 15:22
Re: A little question about function new and stock - by Jefff - 08.01.2016, 15:36
Re: A little question about function new and stock - by fuckingcruse - 09.01.2016, 01:37
Re: A little question about function new and stock - by SickAttack - 09.01.2016, 01:47
Re: A little question about function new and stock - by fuckingcruse - 09.01.2016, 05:48
Re: A little question about function new and stock - by SickAttack - 09.01.2016, 06:15

Forum Jump:


Users browsing this thread: 1 Guest(s)