30.07.2012, 19:37
I'm currently busy with making an All In One script, including house/vehicle ownership systems, adminsystems, register/login
But on register, it does not insert the data in the table.
What did I missed?
But on register, it does not insert the data in the table.
pawn Код:
stock Register(playerid, passwordstring[])
{
new query[400], pname[24];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
//(Name, Password, AdminLevel,Score)
format(query, sizeof(query), "INSERT INTO users (Name, Password, AdminLevel,Score) VALUES ('%s','%s',0, 0)", pname, passwordstring);
mysql_query(query);
Login(playerid);
return 1;
}