30.10.2014, 00:14
O que hб de errado nesse cуdigo? A mensagem manda, mas chega na hora ele nгo salva a skin...
pawn Code:
forward saveAll();
public saveAll()
{
new query[128], name[MAX_PLAYER_NAME];
for(new a = 0; a < MAX_PLAYERS; a++)
{
if(!player[a][E_PLAYER_LOGGED]) continue;
GetPlayerName(a, name, MAX_PLAYER_NAME);
format(query, sizeof(query), "UPDATE `contas` SET `skin` = '%d' WHERE `usuario` = '%s'", GetPlayerSkin(a), name);
mysql_function_query(mysql, query, false, "", "");
}
SendClientMessageToAll(-1, "Dados Salvos!");
}