SA-MP Forums Archive
SetPlayerPos problem. - 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: SetPlayerPos problem. (/showthread.php?tid=70537)



SetPlayerPos problem. - Klutty - 25.03.2009

I have this CMD:
pawn Код:
if (strcmp("/bigfall", cmdtext, true) == 0)
    {
      SetPlayerInterior(playerid, 0)
      SetPlayerPos(playerid, 1364.6066,-1418.8242,779.5549);    // Here's the error o_O
      GivePlayerWeapon(playerid, 46, 1);
      SendClientMessage(playerid,COLOR_WHITE,"Oh no! YOU'RE GONNA FAAAAAALL!!");
        return 1;
        }
When I compile, I get this:
Код:
C:\Program\SAMP Server\gamemodes\sldm.pwn(527) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Help, please?





Re: SetPlayerPos problem. - Dujma - 25.03.2009

pawn Код:
if (strcmp("/bigfall", cmdtext, true) == 0)
{
  SetPlayerInterior(playerid, 0);
  SetPlayerPos(playerid, 1364.6066,-1418.8242,779.5549);
  GivePlayerWeapon(playerid, 46, 1);
  SendClientMessage(playerid,COLOR_WHITE,"Oh no! YOU'RE GONNA FAAAAAALL!!");
  return 1;
}



Re: SetPlayerPos problem. - Karlip - 25.03.2009

You forgot to add an '';'' after SetPlayerInterior.


Re: SetPlayerPos problem. - Kinetic - 25.03.2009

when you get
Код:
error 001: expected token: ";", but found "-identifier-"
look at the line before what causes the error.


Re: SetPlayerPos problem. - Shadow_ - 25.03.2009

Quote:
Originally Posted by Klutty
I have this CMD:
pawn Код:
if (strcmp("/bigfall", cmdtext, true) == 0)
    {
      Se[color=orange]tPlayerInterior(playerid, 0)[color=red];[/color][/color] // you forgot to add that <<<<
      SetPlayerPos(playerid, 1364.6066,-1418.8242,779.5549);    // Here's the error o_O
      GivePlayerWeapon(playerid, 46, 1);
      SendClientMessage(playerid,COLOR_WHITE,"Oh no! YOU'RE GONNA FAAAAAALL!!");
        return 1;
        }
When I compile, I get this:
Код:
C:\Program\SAMP Server\gamemodes\sldm.pwn(527) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Help, please?





Re: SetPlayerPos problem. - Klutty - 25.03.2009

Quote:
Originally Posted by !Karlip
You forgot to add an '';'' after SetPlayerInterior.
Oh, didnt see that, lol :P