Saving player job to mysql
#1

pawn Код:
else if(strcmp(x_job,"job",true) == 0)
            {
                if(GettingJob[playerid] > 0)
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 1 hour Contract.");
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command.");
                    PlayerData[playerid][pJob] = GettingJob[playerid];
                    GettingJob[playerid] = 0;
                    new wakaname[25];
                    GetPlayerName(playerid,wakaname,25);
                    new str[128];
                    format(str,128,"UPDATE `users` SET `Job`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pJob],wakaname);
                    mysql_query(str);
                   
                    return 1;
                }
can anyone help me to make this work? the job won't save to mysql
Reply


Messages In This Thread
Saving player job to mysql - by Kenzu - 05.12.2012, 09:40
Re: Saving player job to mysql - by Ballu Miaa - 05.12.2012, 09:52
Re: Saving player job to mysql - by Kenzu - 05.12.2012, 09:56
Re: Saving player job to mysql - by Ballu Miaa - 05.12.2012, 10:02
Re: Saving player job to mysql - by Kenzu - 05.12.2012, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)