Little help +REP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little help +REP (
/showthread.php?tid=464668)
Little help +REP -
Inn0cent - 18.09.2013
~
Removed
Respuesta: Little help +REP -
BecksLennon - 18.09.2013
What did you mean?, Do not understand your English
Re: Little help +REP -
alinategh - 18.09.2013
You're trying to make a "TextDraw Sequence" okay... Just Create the TextDraws and show the first TextDraw to the player, then OnPlayerKeyStateChange, if he presses key Y (KEY_YES) then destroy the first one and show the second one and so on...
Re: Little help +REP -
Elmin - 18.09.2013
you can try something like this, i didnt tested it, but work with it to have correct order when pressing key yes and key no
Код:
new page[MAX_PLAYERS]
if(newkeys == KEY_YES )
{
page[playerid]++;
if(page[playerid]== 1)
format(fString,sizeof(fString),"~w~your text here");
else if(page[playerid]== 2)
format(fString,sizeof(fString),"~w~your text here 2");
else if(page[playerid]== 3)
format(fString,sizeof(fString),"~w~your text here 2");
else if(page[playerid]== 4)
format(fString,sizeof(fString),"~w~your text here 2"),
}
if(newkeys == KEY_NO )
{
page--;
if(page[playerid]== 4)
format(fString,sizeof(fString),"~w~your text here");
else if(page[playerid]== 3)
format(fString,sizeof(fString),"~w~your text here 2");
else if(page[playerid]== 2)
format(fString,sizeof(fString),"~w~your text here 3");
else if(page[playerid]== 1)
format(fString,sizeof(fString),"~w~your text here 4"), page = 0;
}
TextDrawSetString(maintext, fString);
i hope it helped you
Re: Little help +REP -
Inn0cent - 18.09.2013
....
Re: Little help +REP -
Inn0cent - 20.09.2013
....
Re: Little help +REP -
DavidLuango - 20.09.2013
Can you like be more clear please, I might help you out if I am being able to understand what you're trying to comprehend.