fix warning - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fix warning (
/showthread.php?tid=246535)
fix warning -
omer5198 - 04.04.2011
what this warning says and how can i fix it?
Код:
number of arguments does not match definition
Re: fix warning -
Marricio - 04.04.2011
Show the line.
Re: fix warning -
Sascha - 04.04.2011
(the line is shown in brackets before the warning text if you don't know)
Re: fix warning -
omer5198 - 04.04.2011
those are the lines... but i have more errors now:
line 624:
Quote:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Special Shop / Cars", "After 1 minute, the car will desapear!!!\r\nBandito - 1 Point\r\nLandStalker - 2 Points\r\nNRG-500 - 2 Points\r\nStuntPlane - 2 Points\r\nHunter - 5 Points\r\nHydra - 5 Points");
|
errors for line 624:
Quote:
(624) : warning 202: number of arguments does not match definition
(624) : warning 202: number of arguments does not match definition
|
line 639:
Quote:
if(!Points[playerid] >= 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
|
errors:
Quote:
D:\gta san andreas online\Godfucker\gamemodes\GunGame.pwn(639) : warning 213: tag mismatch
|
i have 7 more warnings like this^^ (tag mismatch) with almost same line... only 1 change to 2/5 and some words in the Message changed...
Re: fix warning -
Sascha - 04.04.2011
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Special Shop / Cars", "After 1 minute, the car will desapear!!!\r\nBandito - 1 Point\r\nLandStalker - 2 Points\r\nNRG-500 - 2 Points\r\nStuntPlane - 2 Points\r\nHunter - 5 Points\r\nHydra - 5 Points", "Ok", "Cancel);
pawn Код:
if(Points[playerid] >= 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
Re: fix warning -
xir - 04.04.2011
First one
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Special Shop / Cars", "After 1 minute, the car will desapear!!!\nBandito - 1 Point\nLandStalker - 2 Points\nNRG-500 - 2 Points\nStuntPlane - 2 Points\nHunter - 5 Points\nHydra - 5 Points", "Select", "Exit");
Second:
pawn Код:
if(Points[playerid] >= 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
Re: fix warning -
omer5198 - 04.04.2011
Quote:
Originally Posted by xir
First one
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Special Shop / Cars", "After 1 minute, the car will desapear!!!\nBandito - 1 Point\nLandStalker - 2 Points\nNRG-500 - 2 Points\nStuntPlane - 2 Points\nHunter - 5 Points\nHydra - 5 Points", "Select", "Exit");
Second:
pawn Код:
if(Points[playerid] >= 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
|
on the first one... i figurd it alone but still thx... and in the second one(i figuard it again alone...) i want that it will send him this message if he'll have less then one... not more then one... but still thx!!!
Re: fix warning -
Sascha - 04.04.2011
then do:
if(Points[playerid] < 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
Re: fix warning -
omer5198 - 04.04.2011
Quote:
Originally Posted by Sascha
then do:
if(Points[playerid] < 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
|
i did if(Points[playerid] == 0 return SendCl... but thx anyway!!!
(Same with the others... if you need 5 or more i did if(Points[playerid] <= 4) return .....