SA-MP Forums Archive
Why warn? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why warn? (/showthread.php?tid=333245)



Why warn? - Gooday - 10.04.2012

pawn Код:
CMD:bay4(playerid, params[])
{
    MoveObject(fdbay4, 682.19921875,1847.19921875,6.59000015, 2.0,0.00000000,0.00000000,79.99694824);
    return 1;
}
Quote:

C:\Users\Luca\Desktop\APRP GM\Server209 - Copia\gamemodes\base.pwn(1567) : warning 202: number of arguments does not match definition

I followed the tutorial!

https://sampwiki.blast.hk/wiki/MoveObject

Why it gives warns?


Re: Why warn? - [EuG]ZeRoGoD - 10.04.2012

define these
Код:
new obj; // Somewhere at the top of your script
Код:
public OnGameModeInit()
{
    obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    return 1;
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    CMD:name(playerid,params[])
    {
        new string[50];
        new movetime = MoveObject(obj, 0, 0, 10, 2.00);
        format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    }
    return 0;
}



Re: Why warn? - emokidx - 10.04.2012

to the above: zcmd doesn't come under any callback
__________________________________________

editops


Re: Why warn? - The__ - 10.04.2012

Quote:
Originally Posted by emokidx111
Посмотреть сообщение
to the above: zcmd doesn't come under any callback
__________________________________________

editops
He just copied it from his script.


Re: Why warn? - [EuG]ZeRoGoD - 10.04.2012

Quote:
Originally Posted by emokidx111
Посмотреть сообщение
to the above: zcmd doesn't come under any callback
__________________________________________

editops
yes it dose return 1; is call back :P hence y that tut was made for that stuff