08.11.2016, 09:03
(
Последний раз редактировалось StrikerZ; 08.11.2016 в 09:35.
)
PHP код:
new Query[700];
format(Query,sizeof(Query),"INSERT INTO `users` (`Name`, `RegisteredOn`, `RegisteredIP`, `LastLoggedIP`, `Password`, `Level`, `Banned`");
format(Query,sizeof(Query),"%s, `Donator`, `Score`, `Cash`, `Kills`, `Deaths`, `Skin`, `Muted`, `Autologin`, `TotalSeconds`,`TotalSpentTime`",Query);
format(Query,sizeof(Query),"%s, `LastSeen`) VALUES(`%s`,`%s`, `%s`, `%s`, `%e`, `%d`, `%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%d`,`%s`,`%s`)",Query,PN(playerid), string,pIP,pIP,buf,0,0,0,1,1500,0,0,0,0,0,seconds,ConvertTime(seconds,mins,hour,day),str);
mysql_tquery(Mysql, Query, "OnAccountRegister", "i", playerid);
PHP код:
forward OnAccountRegister(playerid);
public OnAccountRegister(playerid)
{
printf("[Registration] New account registered. Database ID: ");
return true;
}