23.11.2017, 22:06
I added a new command to my gamemode and i got this error
Error :
Help please
Код:
CMD:announce(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, "You are not allowed to use this command"); new text[64], time, style; if (sscanf(params, "iis[64]", style, time, text)) return SendClientMessage( playerid,"Usage: /announce <style[0-6]> <time in ms> <text>"); if (strlen(text) > 64) return SendClientMessage(playerid,"Message too long please shorten it "); if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!"); if (style < 0 || style > 6) return SendClientMessage(playerid,0xFF0000FF,"Invalid style"); if (time > 20*1000) return SendClientMessage(playerid,"No longer than 20 seconds"); GameTextForAll(text, time, style); return 1; }
Код:
C:\Users\Loed\Desktop\LOD.pwn(33184) : error 035: argument type mismatch (argument 2) C:\Users\Loed\Desktop\LOD.pwn(33187) : error 035: argument type mismatch (argument 2) C:\Users\Loed\Desktop\LOD.pwn(33189) : error 035: argument type mismatch (argument 2) C:\Users\Loed\Desktop\LOD.pwn(33190) : error 035: argument type mismatch (argument 2) C:\Users\Loed\Desktop\LOD.pwn(33194) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.