06.06.2014, 09:27
Hey, code:
Anyone?
pawn Код:
new avardas[25];
GetPlayerName(playerid, avardas, 25);
new s[256];
format(s, sizeof(s), "[BAN] {B36666}%s {3EFFFF}uzblokavo {B36666}%s {3EFFFF}( %s )", avardas, vardas, prz);
SendClientMessageToAll(COLOR_CYAN, s); // everything till here went fine
new query[500];
mysql_format(1, query, sizeof(query), "UPDATE akauntai SET banned='1',przban='%s',banner='%e' WHERE vardas = '%e'", prz, avardas, vardas); // in mysql log I do see, that query is formatted successfully.
mysql_query(1,query); // but i don't see query executed successfully, only about formatting and deconstructor called.
new que[500];
mysql_format(1, que, sizeof(que), "INSERT INTO kickai (admin_name, kicked_name, prz, data, expiration, tipas) VALUES ('%e','%e','%s',NOW(),UNIX_TIMESTAMP()+2592000), '1'", avardas, vardas, prz);
mysql_query(1,que); // the same here
SetTimerEx("KickTimer", 100, false, "i", i); // further everything again works fine
break;