17.03.2013, 21:04
pawn Код:
CMD:aka(playerid,params[])
{
new ID,DBResult:Result,Query[250];
if(sscanf(params,"u",ID)) return SendClientMessage(playerid,-1,"USAGE: /aka [playerid]");
if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,-1,"ERROR: Player not connected.");
format(Query,sizeof(Query),"SELECT * FROM `Accounts` WHERE `IP` = '%s'",IP[ID]);
Result = db_query(DB,Query);
// How would I get the names?
db_free_result(Result);
return 1;
}
thanks in advance.