Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors (
/showthread.php?tid=523857)
Errors -
Team_PRO - 04.07.2014
Error:
Код:
C:\Users\Matt\Desktop\FGV3.0.pwn(19543) : error 035: argument type mismatch (argument 2)
C:\Users\Matt\Desktop\FGV3.0.pwn(19546) : error 035: argument type mismatch (argument 2)
C:\Users\Matt\Desktop\FGV3.0.pwn(19548) : error 035: argument type mismatch (argument 2)
C:\Users\Matt\Desktop\FGV3.0.pwn(19554) : error 035: argument type mismatch (argument 2)
Line:
pawn Код:
SendClientMessage(playerid,"Usage: /announce2 <style[0-6]> <time in ms> <text>");
SendClientMessage(playerid,"Message too long please shorten it ");
if(style == 2) return SendClientMessage(playerid,"Bug with style 2 don't use it!");
SendClientMessage(playerid,"No longer than 20 seconds");
pawn Код:
CMD:announce2(playerid, params[])
{
if(pInfo[playerid][Logged] == 0) return SendClientMessage(playerid, COLOR_RED, "FunBOT:"COL_WHITE" You must be logged in!");
if(pInfo[playerid][Admin] >= 1 || pInfo[playerid][VIP] >= 1)
{
new text[64], time, style;
if (sscanf(params, "iis[64]", style, time, text)) return
SendClientMessage(playerid,"Usage: /announce2 <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,0x854900FF,"Invalid style");
if (time > 20*1000) return
SendClientMessage(playerid,"No longer than 20 seconds");
GameTextForAll(text, time, style);
}
else SendClientMessage(playerid, COLOR_RED, EACMD2);
return true;
}
Re: Errors -
Shockey HD - 04.07.2014
Forgetting color..
pawn Код:
SendClientMessage(playerid,-1,"Usage: /announce2 <style[0-6]> <time in ms> <text>");
SendClientMessage(playerid,-1,"Message too long please shorten it ");
if(style == 2) return SendClientMessage(playerid,-1,"Bug with style 2 don't use it!");
SendClientMessage(playerid,-1,"No longer than 20 seconds");