14.01.2016, 04:15
Vlw a todos pela ajuda mais jб consegui..
se alguйm quiser:
se alguйm quiser:
PHP код:
new aka[124], StringSalvar[124], StringJuntar[124];
format(Query, sizeof(Query),"SELECT * FROM `aka` WHERE Ip = '%s'", GetIP(playerid));
mysql_query(MySQL, Query);
mysql_store_result();
if(mysql_num_rows() > 0) {
mysql_fetch_field_row(StringSalvar, "Names");
if(strfind(StringSalvar, GetName(playerid), true) != -1) {
}
else {
format(StringJuntar, sizeof(StringJuntar), "%s,", GetName(playerid));
strcat(StringJuntar, StringSalvar);
format(aka, sizeof(aka), "UPDATE `aka` SET Names = '%s' WHERE Ip = '%s'", StringJuntar, GetIP(playerid));
mysql_query(MySQL, aka);
}
}
else {
format(aka, sizeof(aka), "INSERT INTO `aka` (Ip,Names) VALUES ('%s','%s')", GetIP(playerid), GetName(playerid));
mysql_query(MySQL, aka);
}