a warning i dont understand
#1

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

Parameters:
SetPlayerCheckpoint(playerid, Float: x, Float: y, Float: z, Float: size);

You forgot to add the size at the end.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)