Help with getting a bool value - 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: Help with getting a bool value (
/showthread.php?tid=530132)
Help with getting a bool value -
Battlezone - 05.08.2014
pawn Код:
stock bool:udb_UserBool(nickname[],key[]) { //the bool was Float lol thats what caused the problem
new fname[MAX_STRING];
format(fname,sizeof(fname),"ladmin/users/%s.sav",udb_encode(nickname));
return dini_Bool(fname,key) ? true : false;
}
I have added that stock to an include (lethaldudb2), but when i compile with it I get a warning at the " return dini_Bool(fname,key) ? true : false; " line:
Код:
warning 213: tag mismatch
Any help on getting the bool value?
Re: Help with getting a bool value -
Dignity - 05.08.2014
https://sampwiki.blast.hk/wiki/GetServerVarAsBool
Re: Help with getting a bool value -
Battlezone - 05.08.2014
GetServerVarAsBool help you get only
server variable status, not created ones.
Re: Help with getting a bool value -
Battlezone - 05.08.2014
Oh damn I forgot to edit the Float at the beginning! nvm guys fixed!