a warning i dont understand - 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: a warning i dont understand (
/showthread.php?tid=463930)
a warning i dont understand -
AIMigboboy - 14.09.2013
when i add this to the script under OnPlayerSpawn SetPlayerCheckpoint(playerid, -2492.4646,2363.1482,10.2773);
I get This
C:\Users\Mo77071\Desktop\Paint Ball DM By ic3_cr3am\gamemodes\PB1.pwn(161) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: a warning i dont understand -
Konstantinos - 14.09.2013
Parameters:
SetPlayerCheckpoint(playerid, Float: x, Float: y, Float: z, Float: size);
You forgot to add the size at the end.
Re: a warning i dont understand -
PrivatioBoni - 14.09.2013
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Correct syntax: (playerid, Float:x, Float:y, Float:z, Float:size)
playerid The ID of the player to set the checkpoint of
Float:x The X coordinate to set the checkpoint at
Float:y The Y coordinate to set the checkpoint at
Float:z The Z coordinate to set the checkpoint at
Float:size The size of the checkpoint