CMD HELP
#6

Quote:

CMD:ad(playerid, params[])
{
new string[128], name[64] ;
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ad [Text]");

format(string, sizeof(string), "[AD] %s : %s", params,name);
SendClientMessageToAll(COLOR_ADUTY, string);
return 1;
}

Quote:

C:\Users\ma\Desktop\test.pwn(3821) : warning 217: loose indentation
C:\Users\ma\Desktop\test.pwn(3823) : warning 209: function "cmd_ad" should return a value
C:\Users\ma\Desktop\test.pwn(3824) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error

HOW TO FIX THAT ?
Reply


Messages In This Thread
CMD HELP - by Andy5 - 19.07.2015, 19:59
Re: CMD HELP - by simo0000 - 19.07.2015, 20:06
Re: CMD HELP - by Andy5 - 19.07.2015, 20:09
Re: CMD HELP - by Andy5 - 19.07.2015, 20:14
Re: CMD HELP - by gurmani11 - 19.07.2015, 20:17
Re: CMD HELP - by Andy5 - 19.07.2015, 21:12
Re: CMD HELP - by Glenn332 - 19.07.2015, 21:15
Re: CMD HELP - by Andy5 - 19.07.2015, 21:27
Re: CMD HELP - by gurmani11 - 19.07.2015, 21:34
Re: CMD HELP - by Glenn332 - 19.07.2015, 21:35

Forum Jump:


Users browsing this thread: 2 Guest(s)