Making the tutorial save?
#1

Hello guys, i've been trying to use this tutorial:everything works great!

But i'm now facing an seriously problem, can't I make this save?

like in my enum having an TutorialFinish to check about something?
Reply
#2

What do you mean save it? If it's in the script, it will happen automatically, unless you're trying to make it dynamic.

Make an enum like "InTut"
And when a player connects set the value to 1
then if the variable if 1 when a player joins, perform the tutorial
when the tutorial finishes, set the variable to 0 then spawn them
Reply
#3

Yes you can of course , just make at last response for that tutorial (however if you're using dialogs, etc..) just store the variable of tutorialfinish = 1;,then when the player connect check if the variable equal to 1 or not if it's equal true ignore that case here's an example
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(PlayerInfo[ playerid ][ TutorialFinish ] == 0)
    {
     //show him your dialogs , textdraws..
    }//on the other cases if he saw that tutorials before , just he can spawn without anything bothers him.
    return 1 ;
}
If you need more explanation just tell me your saving stats system and show me your enums.
Reply
#4

Hmm, doesnt really work..
Reply
#5

Anyone else ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)