Pawno error?
#5

Try
pawn Код:
if(!strcmp("/pm", cmdtext, true, 10) == 0)
{
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000FF,"USAGE: /PM (id) (message)");
    new id = strval(tmp);
    gMessage = strrest(cmdtext,idx);
    if(!strlen(gMessage)) return SendClientMessage(playerid,0xFF0000FF,"Usage: /pm (id) (message)");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000FF,"/pm :Invalid ID");
    GetPlayerName(id,iName,sizeof(iName));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(Message,sizeof(Message),">> %s(%i): %s",iName,id,gMessage);
    SendClientMessage(playerid,0xFFD720FF,Message);
    format(Message,sizeof(Message),"** %s(%i): %s",pName,playerid,gMessage);
    SendClientMessage(id,0xFFD720FF,Message);
    PlayerPlaySound(id,1085,0.0,0.0,0.0);
    return 1;
}
Reply


Messages In This Thread
Pawno error? - by Jamcraftadam - 16.02.2013, 14:17
Re: Pawno error? - by RenovanZ - 16.02.2013, 14:23
Re: Pawno error? - by Jamcraftadam - 16.02.2013, 14:24
Re: Pawno error? - by Jamcraftadam - 16.02.2013, 14:27
Re: Pawno error? - by RenovanZ - 16.02.2013, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)