HELP!?! SetPlayerCheckpoint.
#1

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

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

Oh, who said everythings possible... Lies.
Reply
#4

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

BUMP! Please help me. Im stuck.
Reply
#6

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

Yeh i do.
Reply
#8

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)