whats this
#6

pawn Код:
dcmd_all(const playerid, const params[]_
{
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]");
if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_DRED, "Error: Input too long. Please shorten your message to 120 chars.");
new string128[128];
format(string128, sizeof(string12, "[%i][All] %s",playerid,params);
SendPlayerMessageToAll(playerid,string12;
return 1;
}
You seemed to have missed out a " on the line:

pawn Код:
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]);
This is how it should be:

pawn Код:
if(!params[0]) return SendClientMessage(playerid,COLOR_WHITE,"Usage Error: /all [Message]");
Reply


Messages In This Thread
whats this - by andrewgrob - 01.05.2012, 00:41
Re: whats this - by TheDominator - 01.05.2012, 00:42
Re: whats this - by andrewgrob - 01.05.2012, 00:43
Re: whats this - by andrewgrob - 01.05.2012, 00:48
Re: whats this - by Yuryfury - 01.05.2012, 00:48
Re: whats this - by TheDominator - 01.05.2012, 00:49
Re: whats this - by TheDominator - 01.05.2012, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)