Custom function
#1

Just made this quick function when executing a command with params:

pawn Code:
stock SendUsageMessage(playerid, message[])
{
    SCMEX(playerid, COLOR_BELGREEN, "» [USAGE]: %s", message);
}
SCMEX = SendClientMessageEx.

In a command:

pawn Code:
if(sscanf(params,"r", id)) return SendUsageMessage(playerid, "/spec [playerid/name]");
Got this error:

warning 209: function "SendUsageMessage" should return a value
Reply


Messages In This Thread
Custom function - by SymonClash - 23.03.2019, 16:55
Re: Custom function - by NaS - 23.03.2019, 16:58
Re: Custom function - by Hazon - 23.03.2019, 16:58
Re: Custom function - by SymonClash - 23.03.2019, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)