[AJUDA] Fui por um teleporte e deu um erro
#1

if (strcmp("/Stunt", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
}
return 1;
}


return 0;
}

O erro й esse
Quote:

C:\Documents and Settings\Administrador\Meus documentos\Rafael - Documentos\Progamas\gamemode\gamemodes\monster.pwn (252) : error 030: compound statement not closed at the end of file (started at line 222)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#2

if (strcmp("/Stunt", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
return 0;
}



No seu tinha 1 espaзo.

if(strcmp(cmdtext, "/Stunt", true) == 0)
{
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagem",5000,1);
}
if (!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagen ",5000,1);
SetPlayerInterior(playerid, 0);
}
return 1;
}
return 0;
}

TENTA ESTE QUE TE PASSEI
Reply
#3

Nao deu certo deu o mesmo erro!!
Reply
#4

tenta colocar outra chaves ( } )
se nгo der coloca
return 0;
}

assim vai ficar:

return 1;
}
return 0;
}
}

ou

return 1;
}
return 0;
}
return 0;
}

se nгo der coloca ai a linha 222 e 223
Reply
#5

Porfavor usa
...pawn][/pawn] porque assim nao posso ajudar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)