fix warning
#1

what this warning says and how can i fix it?
Код:
number of arguments does not match definition
Reply
#2

Show the line.
Reply
#3

(the line is shown in brackets before the warning text if you don't know)
Reply
#4

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

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!!!");
Reply
#6

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

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!!!
Reply
#8

then do:
if(Points[playerid] < 1) return SendClientMessage(playerid, COLOUR_RED, "You must have atleast 1 Point to buy NightVision goggles!!!");
Reply
#9

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


Forum Jump:


Users browsing this thread: 2 Guest(s)