Help with getting a bool value
#1

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?
Reply
#2

https://sampwiki.blast.hk/wiki/GetServerVarAsBool

Reply
#3

GetServerVarAsBool help you get only server variable status, not created ones.
Reply
#4

Oh damn I forgot to edit the Float at the beginning! nvm guys fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)