SA-MP Forums Archive
Why do I keep geting this warning? - 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 do I keep geting this warning? (/showthread.php?tid=282457)



Why do I keep geting this warning? - rangerxxll - 11.09.2011

Here's my current command

pawn Код:
COMMAND:work(playerid, cmdtext)
{
    SetPlayerPos(playerid, 817.0552, 857.0133, 12.7891);
    SendClientMessage(playerid, blue, "Welcome to work!");
    PutPlayerInVehicle(playerid, 498, 0);
    SetPlayerCheckpoint(playerid, -2666.7739,637.4879,14.4531);
    return 1;
}
And heres the warning


Quote:

C:\Documents and Settings\Lucas\Desktop\FutreJob\TestJob.pwn(242) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

It's happening on the line where SetPlayerCheckpoint is, what am I doing wrong?


Re: Why do I keep geting this warning? - Jack_Leslie - 11.09.2011

Код:
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
You forgot the size.


Re: Why do I keep geting this warning? - rangerxxll - 11.09.2011

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Oh, duh. Thanks bro.