19.05.2012, 00:00
Thread closed because apparently it's not needed.
There is no point in having this Paramount.
There is the script request thread and there's the scripting discussion. If there is no reply to a thread that's simply because nobody knows the answer. I can reckon the moderators will think so too. |
You usually don't find one that hasn't been replied to yet. :/
|
stock MySQL_Register(playerid, passwordstring[])
{
new query[200], pname[24], IP[16];
GetPlayerName(playerid, pname, 24);
GetPlayerIp(playerid, IP, 16);
format(query, sizeof(query), "INSERT INTO playerdata (user, password, score, money, IP, adminlevel, banned, rope, gps, phone, phonenumber, bannedby, banreason) VALUES('%s', SHA1('%s'), 0, 0, '%s', 0, 0, 0, 0, 0, -1, 'None', 'None')", pname, passwordstring, IP);
mysql_query(query);
ShowPlayerDialog(playerid, 5555, DIALOG_STYLE_MSGBOX, "Congratulations", "You have successfully registered to the Server!", "OK", "");
Logged[playerid] = 1;
return 1;
}
Then obviously people are getting the help that they require.
I'll give you one now. This SQL isn't query'ing right, what's wrong with it? It doesn't register the player. Here pawn Код:
|
You usually don't find one that hasn't been replied to yet. :/
|