03.12.2013, 10:25
So I have this MySQL database everything works fine there's just one problem.. When I look at the variable "playerteam" it saves it as some random symbol..
It is saving the variable value as: я or C (я << Something other than civilian | C < Civ) but I wunna chnage this so It adds the real faction, below I will enter everything
Create the variable in structure:
When someone logs in:
When someone edits / logs out:
I thought it would be this:
<< But when I edited this it crashed the server :/
It is saving the variable value as: я or C (я << Something other than civilian | C < Civ) but I wunna chnage this so It adds the real faction, below I will enter everything
Create the variable in structure:
pawn Код:
mysql_query("ALTER TABLE PlayerInfo ADD playerteam VARCHAR(225) NOT NULL DEFAULT 'CIV'");
pawn Код:
mysql_fetch_field_row(savingstring, "playerteam");
strmid(PlayerInfo[playerid][playerteam], savingstring, 0, strlen(savingstring), 50);
pawn Код:
format(query, sizeof(query), "UPDATE PlayerInfo SET playerteam='%s' WHERE user='%s'", PlayerInfo[playerid][playerteam], pname);
mysql_query(query);
pawn Код:
PlayerInfo[giveplayerid][playerteam] = team;

