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


Messages In This Thread
Using if(..) in mysql - by SomebodyAndMe - 31.05.2012, 15:52
Re: Using if(..) in mysql - by MadeMan - 31.05.2012, 15:56
Re: Using if(..) in mysql - by SomebodyAndMe - 31.05.2012, 15:59
Re: Using if(..) in mysql - by SomebodyAndMe - 31.05.2012, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)