Dini bool problem
#1

hi got little problem with bool using dini include

Код:
new endedtutorial[MAX_PLAYERS];

//Register user
dini_BoolSet(Gracz,"UkonczylTutorial",false);

//loading user
endedtutorial[playerid] = dini_Bool(Gracz, "UkonczylTutorial");

//saving user
dini_BoolSet(Gracz,"UkonczylTutorial", endedtutorial[playerid]);
and now
Код:
if(endedtutorial[playerid] != false) //warning 213: tag mismatch
full if
Код:
	if(endedtutorial[playerid] != false)
	{
	    SetPlayerTime(playerid, 8, 0);
	    SetPlayerVirtualWorld(playerid, 1);
	    SetPlayerPos(playerid, 2243.9314,-1261.9626,23.9487);
	    SetPlayerFacingAngle(playerid, 270.4536);
	    SetCameraBehindPlayer(playerid);
	    endedtutorial[playerid] = 1;
	}
so i wanna add one-time tutorial on first visit on server after register and later check that user ended it at next login.
whats wrong with that?
Reply


Messages In This Thread
Dini bool problem - by cnoopers - 30.06.2014, 12:56
Re: Dini bool problem - by RedFusion - 30.06.2014, 13:02
Re: Dini bool problem - by cnoopers - 30.06.2014, 13:09
Re: Dini bool problem - by cnoopers - 30.06.2014, 14:46
Re: Dini bool problem - by greentarch - 30.06.2014, 14:50
Re: Dini bool problem - by speed258 - 30.06.2014, 14:52
Re: Dini bool problem - by cnoopers - 30.06.2014, 15:15
Re: Dini bool problem - by ikkentim - 30.06.2014, 16:03
Re: Dini bool problem - by cnoopers - 30.06.2014, 16:05
Re: Dini bool problem - by cnoopers - 30.06.2014, 16:24

Forum Jump:


Users browsing this thread: 7 Guest(s)