warning 202: number of arguments does not match definition
#1

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.
Reply
#2

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"
Reply
#3

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
Reply
#4

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", "");
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)