Create a new Id
#4

PHP код:
MySQLregister(playeridpassword[])
{
    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;

Reply


Messages In This Thread
Create a new Id - by DetoNater - 06.06.2015, 10:12
Re: Create a new Id - by DetoNater - 06.06.2015, 20:29
Re: Create a new Id - by Kitten - 06.06.2015, 20:34
Re: Create a new Id - by CodeStyle175 - 06.06.2015, 20:37
Re: Create a new Id - by DetoNater - 06.06.2015, 21:09
Re: Create a new Id - by Konstantinos - 06.06.2015, 21:34

Forum Jump:


Users browsing this thread: 2 Guest(s)