27.09.2013, 16:58
(
Последний раз редактировалось Patrick; 27.09.2013 в 19:29.
)
Alright, first of my problem is, I don't know what's wrong in my command, because as I can see it is right, but for other people might able to see the probably I'm facing, Quick Explanation: when I ban a player it doesn't update the player's Banned Variable, it says 0, it should be 1 on phpMyAdmin
Banning Stock
Picture
PS: I'm using MySQL R6, since I'm used to it, before you comment use R7, I'll learn and study R7 when I do have extra time
Banning Stock
pawn Код:
stock BanPlayer(playerid)
{
KickEx(playerid);
TotalBannedPlayers++;
new Query[128];
format(Query, sizeof(Query), "UPDATE `bans` SET `Banned` = 1 WHERE Username = '%s';", PlayerName(playerid));
mysql_query(Query);
}
PS: I'm using MySQL R6, since I'm used to it, before you comment use R7, I'll learn and study R7 when I do have extra time