[SOLVED] 2 warnings, but command works fine.
#1

Here is the code:
pawn Код:
CMD:arsync(playerid, params[])
{
    if(XInfo[playerid][ALevel] >= 1)
    {
        new rplayer;
        if(!sscanf(params,"u",rplayer))
        {
            new Float:X, Float:Y, Float:Z, vw, intr;
            GetPlayerPos(rplayer, X, Y, Z);
            vw = GetPlayerVirtualWorld(rplayer);
            intr = GetPlayerInterior(rplayer);
            SetTimerEx("arsyncplayer", 400, false,"ifffii",rplayer,X,Y,Z,vw,intr);
            SpawnPlayer(rplayer);
        } SendClientMessage(playerid, COLOR_RED, "Usage: /arsync [Player ID]");
    } else SendClientMessage(playerid, COLOR_BRIGHTRED, wlvl1);
    return true;
}
Код:
E:\Users\PLEOMAX\Desktop\****\filterscripts\****.pwn(3931) : warning 202: number of arguments does not match definition
E:\Users\PLEOMAX\Desktop\****\filterscripts\****.pwn(3931) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
When I compile this, i get 2 warnings.. But ingame, there are no bugs.
I want the warnings to "shoo away...!"
Reply
#2

Show your warning message.
Reply
#3

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Show your warning message.
Oh FailMe... I just didn't notice the line. Problem Solved.
* I misread 3931 with 3913.. -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)