05.11.2011, 17:38
Код:
Mysql_Update(playerid) { new query[500]; format(query,sizeof(query),"SELECT * FROM playerdata WHERE user = '%s'",pNome(playerid)); mysql_query(query); format(query,sizeof(query),"UPDATE playerdata SET kills=%d WHERE user = '%s'", Kills[playerid],pNome(playerid)); if(mysql_query(query)) { printf("gravou"); } else { printf("problema ao gravar"); printf("%s",query); } mysql_store_result(); return 1; }