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

Hello All How to Fix this Warning

Lines
Код:
//===============================PICKUP DEKAT SPAWN SF BASEBALL=================
    if(pickupid == rules) {
    	return cmd_rules(playerid);
    }
    if(pickupid == help) {
    	return cmd_help(playerid);
	}
	return 1;
}
Reply
#2

If and if ..?

If there are 3 or more different divisons , then seprate rest with else if and the last one with else..

So change the 2nd if with else
Reply
#3

I'm not sure what could be wrong since you haven't posted your full related code, but I'd suggest using a switch() statement, instead of if-else statement here.

pawn Код:
switch(pickupid)
{
    case rules: cmd_rules(playerid);
    case help: cmd_help(playerid);
    case ...: // continue
}
Reply
#4

It should look like that, same for cmd_help
pawn Код:
cmd_rules(playerid, "");
Reply
#5

Thank you Mr Nero_3D its working +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)