SetPlayerPos problem.
#1

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?


Reply
#2

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;
}
Reply
#3

You forgot to add an '';'' after SetPlayerInterior.
Reply
#4

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

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?


Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)