[Ajuda] erro ao compilar - error 017: undefined symbol "X"
#1

erro ao compilar


Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new JFSOWNA, name[MAX_PLAYER_NAME];
if(dialogid == 351)
{
if(response)
{
new Float:Angulo;
if(!inputtext[0] || strval(inputtext) < 400 || strval(inputtext) > 609) return SendClientMessage(playerid, CorCinza,"ID Dos Carros Apenas de 400 a 609.");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,CorCinza,"Vocк Jб Estб em um Veiculo.");
GetPlayerPos(playerid,CorX, CorY, CorZ);
GetPlayerFacingAngle(playerid, Angulo);
CreateVehicle(X,Y,Z, 0.0, COLOR1, COLOR2, 60000);
format(Celula,128,"O Administrador Criou Um Carro ID{FF5500} %d.", strval(inputtext));
MensagemAdmins(0x2641FEAA,Celula);
}
return true;
}

Quote:

C:\Users\rose\Desktop\yuri\JFS MiniGames v3.0\gamemodes\JFSMiniGames3.pwn(202) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#2

Faltou definir Var " X ",

PHP код:
new Float:X
Reply
#3

pawn Код:
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X, Y, Z);
CreateVehicle(X,Y,Z, 0.0, COLOR1, COLOR2, 60000);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)