Why warn?
#1

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?
Reply
#2

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;
}
Reply
#3

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

editops
Reply
#4

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

editops
He just copied it from his script.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)