17.04.2014, 23:42
jб arranjei maneira
pawn Код:
new string[1024],string2[1024],string3[1024];
format(string,sizeof(string),"UPDATE `usuarios` SET `coins` = '%d', `dinheiro` = '%d', `pontos` = '%d', `kills` = '%d',`deaths` = '%d',`Arma1` = '%d',`Arma2` = '%d',`Arma3` = '%d' WHERE username = '%s'",PlayerInfo[i][Coins],GetPlayerMoney(i),GetPlayerScore(i),PlayerInfo[i][Kills],PlayerInfo[i][Deaths],PlayerInfo[i][Arma1],PlayerInfo[i][Arma2],PlayerInfo[i][Arma3],GetPlayerNameEx(i));
format(string2,sizeof(string2),"UPDATE `usuarios` SET `Deagle` = '%d',`Tec-9` = '%d',`SMG` = '%d',`Shotgun` = '%d',`Combat Shotgun` = '%d',`M4` = '%d' WHERE username = '%s'",PlayerInfo[i][Deagle],PlayerInfo[i][Tec9],PlayerInfo[i][SMG],PlayerInfo[i][Shotgun],PlayerInfo[i][CombatShotgun],PlayerInfo[i][M4],GetPlayerNameEx(i));
format(string3,sizeof(string3),"`UPDATE `usuarios` SET `AK47` = '%d',`Rifle` = '%d',`Sniper Rifle` = '%d',`Molotov` = '%d',`Flame Thrower` = '%d'`Mini Gun` = '%d',`Rocket Launcher` = '%d',`Admin` = '%d' WHERE username = '%s'",PlayerInfo[i][AK47],PlayerInfo[i][Rifle],PlayerInfo[i][SniperRifle], PlayerInfo[i][Molotov],PlayerInfo[i][FlameThrower],PlayerInfo[i][MiniGun],PlayerInfo[i][RocketLauncher],PlayerInfo[i][Admin],GetPlayerNameEx(i));
mysql_function_query(mysql,string,false,"","");
mysql_function_query(mysql,string2,false,"","");
mysql_function_query(mysql,string3,false,"","");