SA-MP Forums Archive
HELP!?! SetPlayerCheckpoint. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP!?! SetPlayerCheckpoint. (/showthread.php?tid=196161)



HELP!?! SetPlayerCheckpoint. - BigAl - 04.12.2010

Hello, i need help with this...

I have these lines and this warning.
Код:
	new checkpoint;
   	checkpoint = SetPlayerCheckpoint(playerid, 000.0000,000.0000,00.000,000.00);
Please help me

Код:
C:\Users\Ross\Desktop\G2x andreas\gamemodes\UltimatePwnage.pwn(620) : warning 204: symbol is assigned a value that is never used: "checkpoint"
Thanks


Re: HELP!?! SetPlayerCheckpoint. - Lynn - 04.12.2010

I'm pretty sure you can only have 1 checkpoint placed at a time.


Re: HELP!?! SetPlayerCheckpoint. - BigAl - 04.12.2010

Oh, who said everythings possible... Lies.


Re: HELP!?! SetPlayerCheckpoint. - Sinner - 04.12.2010

Use a streamer to create multiple checkpoints, give a name to each checkpoint and teleport the player when he enters each checkpoint with OnPlayerEnterCheckpoint()


Re: HELP!?! SetPlayerCheckpoint. - BigAl - 04.12.2010

BUMP! Please help me. Im stuck.


Re: HELP!?! SetPlayerCheckpoint. - iggy1 - 04.12.2010

The warning has nothing whatsoever to do with how many checkpoints you use. You don't need a streamer to use more than 1 checkpoint. Even with a streamer only one checkpoint can be shown to a player at any one time. Anyway the warning is just telling you that you never use the variable "checkpoint".

You could remove the warning with this.
pawn Код:
#pragma unused checkpoint



Re: HELP!?! SetPlayerCheckpoint. - BigAl - 04.12.2010

Yeh i do.


Re: HELP!?! SetPlayerCheckpoint. - iggy1 - 04.12.2010

Well show where you use the variable then. Usually if the compiler says you never used a variable, that means you never.


Re: HELP!?! SetPlayerCheckpoint. - PowerPC603 - 04.12.2010

I'm pretty sure that SetPlayerCheckpoint doesn't return a value, so nothing gets stored in your checkpoint variable.
That may also be the problem why you get that message.


Re: HELP!?! SetPlayerCheckpoint. - BigAl - 05.12.2010

Okay, i fixed it with... SetPlayerCheckpoint(checkpoint, X, Y, Z);