Help needed: SetPlayerPos doesn't work anymore ?
#1

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

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

Remove on‌e = from line 423 and the warning should be gone.

EDIT: And add one in line 397, 411.
Reply
#4

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

pawn Код:
baseid == bvariable;
should be
pawn Код:
baseid = bvariable;
and that is it... that will remove all yours warnings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)