an error while compiling...
#10

Quote:

Warning: This callback was removed in SA-MP 0.3. See below how to create a /pm command.

If you wanna use /pm just use this

PHP код:
if(!strcmp("/pm"cmdtexttrue))
{
    
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
an error while compiling... - by maziar_gholipour - 20.09.2011, 11:58
Re: an error while compiling... - by Skank - 20.09.2011, 12:05
Re: an error while compiling... - by Issam - 20.09.2011, 12:06
Re: an error while compiling... - by |_ⒾⓇⓄN_ⒹⓄG_| - 20.09.2011, 12:07
Re: an error while compiling... - by Fat - 20.09.2011, 12:07
Re: an error while compiling... - by |_ⒾⓇⓄN_ⒹⓄG_| - 20.09.2011, 12:11
Re: an error while compiling... - by maziar_gholipour - 20.09.2011, 12:48
Re: an error while compiling... - by Skank - 20.09.2011, 13:00
Re: an error while compiling... - by |_ⒾⓇⓄN_ⒹⓄG_| - 20.09.2011, 13:01
Re: an error while compiling... - by =WoR=G4M3Ov3r - 20.09.2011, 13:02

Forum Jump:


Users browsing this thread: 2 Guest(s)