Help needed: SetPlayerPos doesn't work anymore ? - 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: Help needed: SetPlayerPos doesn't work anymore ? (
/showthread.php?tid=306705)
Help needed: SetPlayerPos doesn't work anymore ? -
theinformer - 27.12.2011
http://pastebin.com/vcfz2cvA
Please check this. Before it used to work but not anymore.. I want to type /startbase do checkout the dcmd_startbase to get an idea, I setup a timer to get me to StartBase(playerid, baseid) function, and there I have SetPlayerPos under the if(gTeam == TEAMGANG) but it doesnt teleport me to those coordinates anymore. This happened after I added checkpoint from streamer by Incognito..
Also, could you check the dcmd_end command because my player freezes sometimes for a lil while when I type it.
I'm new to scripting
Re: Help needed: SetPlayerPos doesn't work anymore ? -
theinformer - 27.12.2011
ALSO: The followings are the warnings I get when I compile this script:
Test.pwn(397) : warning 211: possibly unintended assignment
Test.pwn(411) : warning 211: possibly unintended assignment
Test.pwn(423) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
Re: Help needed: SetPlayerPos doesn't work anymore ? -
Seven_of_Nine - 27.12.2011
Remove one = from line 423 and the warning should be gone.
EDIT: And add one in line 397, 411.
Re: Help needed: SetPlayerPos doesn't work anymore ? -
kizla - 27.12.2011
why to remove :SS
on the line 411 you have this code
pawn Код:
if(checkpointid = Checkpoint[1]){
and it have to goes..
pawn Код:
if(checkpointid == Checkpoint[1]){
just replace it..
on the line 397 is the same problem
pawn Код:
if(checkpointid = Checkpoint[1]){
should be
pawn Код:
if(checkpointid == Checkpoint[1]){
on the line 423
it is
should be
and that is it... that will remove all yours warnings