warning help
#1

when i add return SendClientMessage blablabla its giving me this warning

pawn Код:
(8259) : warning 202: number of arguments does not match definition
this an example code.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 6, 294.3638,-82.5354,1001.5156,90.4606)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the ammunation rob point.");
Thanks for helping.
Reply
#2

Actually, you have this:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 6, 294.3638,-82.5354,1001.5156,90.4606)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the ammunation rob point.");
You have 6 arguments. You need only 5.

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Range, X, Y, Z)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the ammunation rob point.");
You put Angle too. I think..
Correct code:

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 6, 294.3638,-82.5354,1001.5156)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the ammunation rob point.");
Reply
#3

Thanks! +rep <3
Reply
#4

and what about this line? same error
pawn Код:
GameTextForPlayer(playerb, "~w~You has been unsuspected by %s, you are not a criminal anymore !", 5000, 3, NORPN(playerid));
Reply
#5

Quote:
Originally Posted by Rabea
Посмотреть сообщение
and what about this line? same error
pawn Код:
GameTextForPlayer(playerb, "~w~You has been unsuspected by %s, you are not a criminal anymore !", 5000, 3, NORPN(playerid));
pawn Код:
new string[128];
format(string, sizeof(string), "~w~You has been unsuspected by %s, you are not a criminal anymore !",NORPN(playerid));
GameTextForPlayer(playerb, string, 5000, 3);
Reply
#6

Can't use GameTextForPlayer like this.
Format it;

pawn Код:
new string[50];
format(string, sizeof(string), "~w~You has been unsuspected by %s, you are not a criminal anymore !", NORPN(playerid));
GameTextForPlayer(playerid, string, 5000, 3);
Reply
#7

its giving the same error
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)