06.06.2015, 20:37
PHP код:
MySQLregister(playerid, password[])
{
new query[128];
mysql_format(mysql,query,sizeof(query),"INSERT INTO users(Name, Pass) VALUES ('%s', '%s')",
PlayerName(playerid),password);
new Cache:cquery=mysql_query(mysql,query);
UserSQLID[playerid] = cache_insert_id();
cache_delete(cquery);
GivePlayerCash(playerid,10000);
GiveClanCash(playerid,10000);
LoggedIn[playerid] = 1;
SCM(playerid,-1,"You successfully registered yourself.");
return 1;
}