28.09.2013, 18:20
(
Последний раз редактировалось RedWolfX; 28.09.2013 в 19:21.
)
Hello, I am trying to convert my script in to mysql. But it refuses to save users.
This is my register dialog:
Using the mysql plugin by Stricken. Why dont the users save? :P
This is my register dialog:
pawn Код:
new EscapedText[60],Query[80];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
mysql_real_escape_string(inputtext, EscapedText);
format(Query,sizeof(Query),"INSERT INTO `users` (Username,Password,Score,AdminLevel) VALUES ('%s','%s,'1'0')",GetPName(playerid),EscapedText);
mysql_query(Query);
mysql_store_result();
mysql_free_result();
PlayerInfo[playerid][pSurvivors] = 1;
IsInTut[playerid] = 1;