Using if(..) in mysql
#1

Currently setting up my mysql system.

I have a bool which has to be loaded from the database, and has to be saved in, how can i do those two?

These are the lines who has to be converted in true or false.

pawn Код:
mysql_fetch_field("Muted", savingstring); APlayerData[playerid][Muted] = strval(savingstring); //10.
    mysql_fetch_field("RulesRead", savingstring); APlayerData[playerid][RulesRead] = strval(savingstring); //11.
    mysql_fetch_field("SRT", savingstring); APlayerData[playerid][SRT] = strval(savingstring); //12 .
    mysql_fetch_field("PSwork", savingstring); APlayerData[playerid][PSwork] = strval(savingstring); //13
Reply
#2

What's wrong with it now?
Reply
#3

It are bools those 4, and I have to check whether it's True or False, but I have no idea how to script it in the current. (shown above)
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)