Mysql working with bools
#1

pawn Код:
PlayerInfo[playerid][pAdmin] = cache_get_field_content_int(0, "admin");
pAdmin is and bool
but this gives me error
pawn Код:
warning 213: tag mismatch

http://forum.sa-mp.com/converse.php?u=96478&u2=224659
Reply
#2

For booleans would be:
pawn Код:
PlayerInfo[playerid][..] = !!cache_get_field_content_int(0, "..");
but why admin level not be an integer that holds more than 0/1?
Reply
#3

No just a single value i don't have any kind of admin levels just another question what will be the password and username for localhost ?
As I didn't needed to enter one.
Reply
#4

As for testing, I use "root" and no password. Uploading to a host or vps though you better use a different user with a password for security.
Reply
#5

Yea thanks for the help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)