SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (/showthread.php?tid=515982)



warning 202: number of arguments does not match definition - lulo356 - 29.05.2014

Whats wrong with this...
pawn Код:
ShowPlayerDialog(playerb, 1239, DIALOG_STYLE_MSGBOX, "Divoro Roleplay Ban", "Dear %s you have been banned by %s\nReason for the ban %s\nYou can make a unban apply on the forum\nPress F8 to make a screenshot\nSincerely %s Divoro Staff Team","Close" "", RPN(playerb), RPN(playerid), params, RPN(playerid));
pawn Код:
Divoro\gamemodes\d-rp.pwn(23821) : warning 202: number of arguments does not match definition
Divoro\gamemodes\d-rp.pwn(23821) : warning 202: number of arguments does not match definition
Divoro\gamemodes\d-rp.pwn(23821) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.



Re: warning 202: number of arguments does not match definition - TazmaNiax - 29.05.2014

Quote:
Originally Posted by lulo356
Посмотреть сообщение
Whats wrong with this...
ShowPlayerDialog(playerb, 1239, DIALOG_STYLE_MSGBOX, "Divoro Roleplay Ban", "Dear %s you have been banned by %s\nReason for the ban %s\nYou can make a unban apply on the forum\nPress F8 to make a screenshot\nSincerely %s Divoro Staff Team","Close" "", RPN(playerb), RPN(playerid), params, RPN(playerid));
it should be like this
Код:
ShowPlayerDialog(playerid, 1239, DIALOG_STYLE_MSGBOX, "Divoro Roleplay Ban", "Dear %s you have been banned by %s\nReason for the ban %s\nYou can make a unban apply on the forum\nPress F8 to make a screenshot\nSincerely %s Divoro Staff Team","Close" "", RPN(playerb), RPN(playerid), params, RPN(playerid));
not "Playerb" but "Playerid"


Re: warning 202: number of arguments does not match definition - lulo356 - 29.05.2014

Quote:
Originally Posted by TazmaNiax
Посмотреть сообщение
it should be like this
Код:
ShowPlayerDialog(playerid, 1239, DIALOG_STYLE_MSGBOX, "Divoro Roleplay Ban", "Dear %s you have been banned by %s\nReason for the ban %s\nYou can make a unban apply on the forum\nPress F8 to make a screenshot\nSincerely %s Divoro Staff Team","Close" "", RPN(playerb), RPN(playerid), params, RPN(playerid));
not "Playerb" but "Playerid"
No,you see its for a ban system, and Playerid, is the guy/girl thats banning someone, so they will see the dialog and not the player thats getting banned


Re: warning 202: number of arguments does not match definition - Threshold - 29.05.2014

pawn Код:
new str[128];
format(str, sizeof(str), "Dear %s you have been banned by %s\nReason for the ban %s\nYou can make a unban apply on the forum\nPress F8 to make a screenshot\nSincerely %s Divoro Staff Team", RPN(playerb), RPN(playerid), params, RPN(playerid));
ShowPlayerDialog(playerb, 1239, DIALOG_STYLE_MSGBOX, "Divoro Roleplay Ban", str, "Close", "");



Re: warning 202: number of arguments does not match definition - lulo356 - 29.05.2014

Errors are removed, only i had to change the str to string.. Both +rep, for helping me