Problems with Tutorial system - 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: Problems with Tutorial system (
/showthread.php?tid=607572)
Problems with Tutorial system -
Alpay0098 - 21.05.2016
Hi guys,
I made a command that stops you from watching tutorial.
In tutorial I used this code :
[DELETED CODE]
I'll +rep for the best answer. Thanks <3
Re: Problems with Tutorial system -
maximthepain - 21.05.2016
After you execute the command does the tutorial start from the start?
When do you call Tut1 function?
I don't know what is "SetPlayerSpawn(playerid)" This function might recall the tutorial.]
Be sure that the function that calls Tut1 has:
Код:
if(PlayerInfo[giveplayerid][pTut] == 0) SetTimer...
else SpawnPlayer(playerid);
To help me find the problem show SetPlayerSpawn(playerid) & When you first call Tut1(playerid)
Re: Problems with Tutorial system -
Alpay0098 - 21.05.2016
Thanks for trying to help, but the problem was here :
KillTimer(Tut[playerid]);
KillTimer(TimerAmuzesh[playerid]);
instead of playerid, i should've use giveplayerid
Thanks, Codes are getting deleted.
#CLOSED