A question about printf & onplayercommandperfrom/text
#1

delete
Reply
#2

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    printf("%s(%d) has used %s",GetPlayerNameEx(playerid),playerid,cmdtext);
    return 1;
}
EDIT: here's the stock of getplayernameex if you don't have it.
pawn Код:
stock GetPlayerNameEx(playerid)
{
     new pName[25];
     GetPlayerName(playerid, pName, sizeof(pName));
     return pName;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)