small help
#9

Код:
CMD:pm(playerid, params[])
{
    new targetid,message[128],string[256];
    if(sscanf(params,"us[256]", targetid, message)) return SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /pm [playerid] [message]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,COLOR_RED,"Player is not online");
    if(targetid == playerid) return SendClientMessage(playerid,COLOR_RED,"You Can'nt PM Your Self!");
    if(AllowPM[targetid] == 1)
	{
        format(string, sizeof(string),"PM From %s Message: %s", GetPlayerName(playerid), message);
        SendClientMessage(targetid, COLOR_RED, string);
        format(string, sizeof(string),"PM send to %s Message: %s", GetPlayerName(targetid), message);
        SendClientMessage(playerid, COLOR_RED, string);
 }
    else return SendClientMessage(playerid, COLOR_RED,"That player is not allowing PM's to send to him, sorry!");
    return 1;
}
This command show me 4 warnings how to fix

Код:
D:\My server\gamemodes\LvG_Script.pwn(1983) : warning 202: number of arguments does not match definition
D:\My server\gamemodes\LvG_Script.pwn(1983) : warning 202: number of arguments does not match definition
D:\My server\gamemodes\LvG_Script.pwn(1985) : warning 202: number of arguments does not match definition
D:\My server\gamemodes\LvG_Script.pwn(1985) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply


Messages In This Thread
small help - by KamalBa - 21.06.2015, 22:56
Re: small help - by Crayder - 21.06.2015, 23:03
Re: small help - by justice96 - 21.06.2015, 23:05
Re: small help - by KamalBa - 21.06.2015, 23:12
Re: small help - by Crayder - 21.06.2015, 23:14
Re: small help - by KamalBa - 21.06.2015, 23:15
Re: small help - by justice96 - 21.06.2015, 23:22
Re: small help - by Crayder - 21.06.2015, 23:28
Re: small help - by KamalBa - 21.06.2015, 23:55
Re: small help - by Crayder - 22.06.2015, 00:01

Forum Jump:


Users browsing this thread: 3 Guest(s)