/announce cmd help
#1

If anyone can tell me what I did wrong here :

Код:
C:\Users\Marko\Desktop\trucking\filterscripts\announce.pwn(12) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
//Includes
#include <a_samp>
#include <zcmd>
#include <sscanf2>

//Defines
#define COLOR_WHITE 0xFFFFFFAA

//Command
CMD:announce(playerid, params[])
{
    if(IsPlayerAdmin, playerid, PlayerLevel >= 2)
  return SendClientMessage(playerid, COLOR_WHITE, "You are not allowed to use this command!");

    new text[64], time, style;
    if (sscanf(params, "iis[64]", style, time, text)) return
        SendClientMessage(playerid, COLOR_WHITE, "Usage: /announce <style[0-6]> <time in ms> <text>");
    if (strlen(text) > 64) return
        SendClientMessage(playerid, COLOR_WHITE, "Message too long please shorten it!");
    if(style == 2) return SendClientMessage(playerid, COLOR_WHITE, "Bug with style 2 don't use it!");
    if (style < 0 || style > 6) return
        SendClientMessage(playerid, COLOR_WHITE,"Invalid style!");
    if (time > 20*1000) return
        SendClientMessage(playerid, COLOR_WHITE, "No longer than 20 seconds!");
    GameTextForAll(text, time, style);
    return 1;
}
Reply


Messages In This Thread
/announce cmd help - by S4ba - 08.03.2013, 19:05
Re: /announce cmd help - by NathNathii - 08.03.2013, 19:09
Re: /announce cmd help - by S4ba - 08.03.2013, 19:10
Re: /announce cmd help - by NathNathii - 08.03.2013, 19:31
Re: /announce cmd help - by S4ba - 08.03.2013, 19:33
Re: /announce cmd help - by PabloDiCostanzo - 08.03.2013, 19:35
Re: /announce cmd help - by NathNathii - 08.03.2013, 19:35
Re: /announce cmd help - by S4ba - 08.03.2013, 19:47
Re: /announce cmd help - by NathNathii - 08.03.2013, 19:48
Re: /announce cmd help - by PabloDiCostanzo - 08.03.2013, 21:50

Forum Jump:


Users browsing this thread: 4 Guest(s)