05.12.2012, 09:40
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;
}