09.07.2014, 09:58
PHP код:
if(dialogid == REGISTER)
{
if(!response) return Kick(playerid);
new query[300];
cache_insert_id();
mysql_format(OCP, query, sizeof(query), "INSERT INTO `account` (`Name`, `Password`) VALUES ('%s', '%s')", GLN(playerid), inputtext);
SendClientMessage(playerid, -1, "Sucessful.");
}
stock GLN(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}