In Teleport heating help Please!
#1

Well Folks I'm With This Error In My Time To Create Teleport!

Erro:
Quote:

D:\Usuarios\Desktop\SERVER\gamemodes\FPGM.pwn(465) : error 037: invalid string (possibly non-terminated string)
D:\Usuarios\Desktop\SERVER\gamemodes\FPGM.pwn(465) : error 029: invalid expression, assumed zero
D:\Usuarios\Desktop\SERVER\gamemodes\FPGM.pwn(465) : warning 215: expression has no effect
D:\Usuarios\Desktop\SERVER\gamemodes\FPGM.pwn(465) : error 001: expected token: ";", but found ")"
D:\Usuarios\Desktop\SERVER\gamemodes\FPGM.pwn(465) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Pawn:
Quote:

//======================================testecmdtele ======================
if(strcmp(cmdtext,"/teste!,true)==0)
{
new cartype=GetPlayerVehicleID(playerid);
new State-GetPlayerState(playerid);
SetOlayerInterior(playerid,0);
{
if(state!=PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,2078.0737,-513.2518,604.6777);
}
else if(IsPlayerInVehicle(playerid,cartype)==0)
{
SetVehiclePos(cartype,2078.0737,-513.2518,604.6777);
GetVehicleZAngle(cartype,30.6101):}
else
{
SetPlayerPos(playerid,2078.0737,-513.2518,604.6777);
GameTextForPlayer(playerid,"Bem Vindo Ao Comando De Testes",2500,3);
}
return 1;
}

Thank you in Who Help Me VLW !
Reply
#2

what line is 465?
Reply
#3

Heres your fail.
Quote:
Originally Posted by YourCode
new State-GetPlayerState(playerid);
instead of it it should be:
pawn Код:
new State=GetPlayerState(playerid);
Do you see what I mean?

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.
Reply
#4

You haven't noticed all of his mistakes, Max_Coldheart.

pawn Код:
if(strcmp(cmdtext,"/teste",true)==0)
{
   new cartype = GetPlayerVehicleID(playerid);
   new State = GetPlayerState(playerid);
   SetPlayerInterior(playerid,0);

   if (State!=PLAYER_STATE_DRIVER)
   {
      SetPlayerPos(playerid,2078.0737,-513.2518,604.6777);
      GameTextForPlayer(playerid,"Bem Vindo Ao Comando De Testes",2500,3);
   }
   else if (IsPlayerInVehicle(playerid,cartype)==0)
   {
      SetVehiclePos(cartype,2078.0737,-513.2518,604.6777);
      SetVehicleZAngle(cartype,30.6101);
      PutPlayerInVehicle(playerid, cartype, 0);
   }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)