Help Please Warnings
#1

Error:
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(23781) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(2415 : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24312) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24457) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24556) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24649) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24737) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24825) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(24917) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25199) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25311) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25419) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25619) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25819) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25905) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(25992) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(26080) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(26217) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(26371) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(29351) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(30120) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(30204) : warning 202: number of arguments does not match definition
C:\Users\explorer\Desktop\s\gamemodes\DEATHMATCH.p wn(30492) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


23 Warnings.


Line Has :
23781
giveplayerid = ReturnUser(tmp, playerid);


24158
TargetID = ReturnUser(tmp, playerid);

24312
if (GetPlayerVirtualWorld(playerid) > 0)

24457
TargetID = ReturnUser(tmp, playerid);

24556
TargetID = ReturnUser(tmp, playerid);

24649
PlayerInfo[playerid][pBitchSlapTime] = 10;

24737
TargetID = ReturnUser(tmp, playerid);

24825
TargetID = ReturnUser(tmp, playerid);

24917
TargetID = ReturnUser(tmp, playerid);

25199
TargetID = ReturnUser(tmp, playerid);

25311
TargetID = ReturnUser(tmp, playerid);

25419
TargetID = ReturnUser(tmp, playerid);

25619
TargetID = ReturnUser(tmp, playerid);

25819
TargetID = ReturnUser(tmp, playerid);

25905
TargetID = ReturnUser(tmp, playerid);

25992
TargetID = ReturnUser(tmp, playerid);

26080
giveplayerid = ReturnUser(tmp, playerid);

26217
TargetID = ReturnUser(tmp,playerid);

26371
TargetID = ReturnUser(tmp,playerid);

29351
TargetID = ReturnUser(tmp,playerid);

30120
TargetID = ReturnUser(tmp, playerid);

30492
TargetID = TargetID = ReturnUser(tmp, playerid);

Thats All
Please help me to solve them
Reply
#2

anyone ?
Reply
#3

Clearly your ReturnUser method is defined differently. Show us the code for that method.
Reply
#4

Quote:
Originally Posted by Sithis
Посмотреть сообщение
Clearly your ReturnUser method is defined differently. Show us the code for that method.
Bruh which code ? ? Can you explain a bit ?
Reply
#5

Show full code if you want this to be fixed. You are pointing out part of the code.
Reply
#6

COMMAND:wave(playerid, params[])
{
if (PlayerInfo[playerid][pSpawned] == 1)
{
new idx,TargetID,string[256],tmp[256];

if(PlayerInfo[playerid][pWaveTime] > 0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please Wait Before Using This Command Again.");
return 1;
}

tmp = strtok(params, idx);


if (!strlen(tmp))
{
TargetID = GetClosestPlayer(playerid);

if (TargetID == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, COLOR_ERROR, "No Players Close Enough To Wave At.");
return 1;
}
}else{

if (!isNumeric(tmp))
{
TargetID = ReturnUser(tmp, playerid);
if (TargetID == INVALID_PLAYER_ID)
{
return 1;
}
}
else
{
TargetID = strval(tmp);

if (!IsPlayerConnected(TargetID))
{
format(string, sizeof(string), "%d Is Not A Valid ID.", TargetID);
SendClientMessage(playerid, COLOR_ERROR, string);
return 1;
}
}
}

if (TargetID == playerid)
{
SendClientMessage(playerid, COLOR_ERROR, "You Cannot Wave At Yourself.");
return 1;
}

if (GetDistanceBetweenPlayers(playerid,TargetID) > 3)
{
format(string, sizeof(string), "%s (%d) Is Not Close Enough. You Cannot Wave At %s.",PlayerInfo[TargetID][pName],TargetID, ObjectGenderPronouns[PlayerInfo[TargetID][pGender]]);
SendClientMessage(playerid, COLOR_ERROR, string);
return 1;
}
Reply
#7

Change all of ReturnUsers to
PHP код:
ReturnUser(tmp); 
Reply
#8

Quote:
Originally Posted by Vithinn
Посмотреть сообщение
Change all of ReturnUsers to
PHP код:
ReturnUser(tmp); 
And about OTHEr 2 or 3 warnings bruh ?
Reply
#9

Send the command that these lines are in
PHP код:
24312
if (GetPlayerVirtualWorld(playerid) > 0)
24649
PlayerInfo
[playerid][pBitchSlapTime] = 10
About this:
PHP код:
30492
TargetID 
TargetID ReturnUser(tmpplayerid); 
Try:
PHP код:
 TargetID ReturnUser(tmp); 
Reply
#10

Quote:
Originally Posted by Vithinn
Посмотреть сообщение
Send the command that these lines are in
PHP код:
24312
if (GetPlayerVirtualWorld(playerid) > 0)
24649
PlayerInfo
[playerid][pBitchSlapTime] = 10
About this:
PHP код:
30492
TargetID 
TargetID ReturnUser(tmpplayerid); 
Try:
PHP код:
 TargetID ReturnUser(tmp); 
I love you that worked none warnings now i really love you thankyou so much
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)