Textdraw Arrow question
#8

Quote:
Originally Posted by sammp
Посмотреть сообщение
Yes I know that. Though I am puzzled as to how I would make it like pages.
Just use a variable. Like:
pawn Код:
new SpawnSelected[MAX_PLAYERS];
And have it assign a specific value each time you click the arrow. So if they click the right arrow:
pawn Код:
SpawnSelected[playerid]++;
and for the left arrow:
pawn Код:
SpawnSelected[playerid]--;
And then create a function to spawn the player based on a key or command and use:
pawn Код:
switch(SpawnSelected[playerid])
{
    case 0: //Your first selection
    case 1: //Your second selection
    case 2: //Your third selection
}
Be sure you make it to where if SpawnSelected[playerid] is equal to three (or your max value) then if the right arrow is clicked (to make the variable increase) then subtract it by the amount of possible spawns, three for my example.
Reply


Messages In This Thread
Textdraw Arrow question - by sammp - 15.07.2014, 19:06
Re: Textdraw Arrow question - by Smileys - 15.07.2014, 19:24
Re: Textdraw Arrow question - by sammp - 15.07.2014, 20:53
Re: Textdraw Arrow question - by sammp - 16.07.2014, 02:04
Re: Textdraw Arrow question - by nmader - 16.07.2014, 02:13
Re: Textdraw Arrow question - by amirab - 16.07.2014, 02:32
Re: Textdraw Arrow question - by sammp - 16.07.2014, 05:56
Re: Textdraw Arrow question - by nmader - 16.07.2014, 06:03

Forum Jump:


Users browsing this thread: 6 Guest(s)