20.03.2014, 10:33
Hi..
I have made a register command and I want to save player data in my mysql server, it is provided by triangle.gs
It doesn't save, anything.
Here's the command:
Please help me as soon as possible! My server needs to be public soon!
I have made a register command and I want to save player data in my mysql server, it is provided by triangle.gs
It doesn't save, anything.
Here's the command:
pawn Код:
CMD:register(playerid, params[])
{
new pass[128];
if(sscanf(params, "s[128]", pass)) return SendClientMessage(playerid, RED, "[ERROR] Correct Usage: /register [password]");
{
new query[1024];
new name[128];
GetPlayerName(playerid, name, sizeof(name));
format(query, sizeof(query), "INSERT INTO `users` (`id`, `Name`, `Password`, `Kills`, `Deaths`, `Score`, `Status`, `Health`, `Armour`, `Money`, `AdminLevel`, `VIPLevel`, `TotalTime`, `RegDate`, `Banned`, `Locked`) VALUES ('%d', '%s', '%s',0,0,0,0,0,0,0,0,0,0,0,0,0",UID, name, pass);
mysql_query(query);
print(query);
SendClientMessage(playerid, WHITE, "You have successfully registered your account.");
}
return 1;
}


