C:\Users\Jerome\Desktop\pawno\new.pwn(325) : error 030: compound statement not closed at the end of file (started at line 310)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
C:\Users\Jerome\Desktop\pawno\new.pwn(325) : error 030: compound statement not closed at the end of file (started at line 310)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Es fehlt eine }
wo genau?
new Float:x,Float:y,Float:z,Float: ZRot;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ZRot);
if (listitem == 0)
{
CreateVehicle(494,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
else if(listitem == 1)
{
CreateVehicle(506,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
return 1;
}
Alles anzeigen
Poste mal bitte alles abwärts von OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == CARCRE)
{
if(response)
{
new Float:x,Float:y,Float:z,Float: ZRot;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ZRot);
if (listitem == 0)
{
CreateVehicle(494,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
else if(listitem == 1)
{
CreateVehicle(506,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
return 1;
}
Alles anzeigen
PHPAlles anzeigenpublic OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == CARCRE) { if(response) { new Float:x,Float:y,Float:z,Float: ZRot; GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid,ZRot); if (listitem == 0) { CreateVehicle(494,x,y,z,ZRot,1,1,-1); SendClientMessage(playerid,0x00ff00ff,"Auto erstellt"); } else if(listitem == 1) { CreateVehicle(506,x,y,z,ZRot,1,1,-1); SendClientMessage(playerid,0x00ff00ff,"Auto erstellt"); } return 1; }
Versuche es so:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == CARCRE)
{
if(response)
{
new Float:x,Float:y,Float:z,Float: ZRot;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ZRot);
if (listitem == 0)
{
CreateVehicle(494,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
else if(listitem == 1)
{
CreateVehicle(506,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
return 1;
}
}
}
Versuch es so:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == CARCRE)
{
if(response)
{
new Float:x,Float:y,Float:z,Float: ZRot;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ZRot);
if (listitem == 0)
{
CreateVehicle(494,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
else if(listitem == 1)
{
CreateVehicle(506,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
}
return 1;
}
}
Hir so sollte es gehen
Der erste, Code einrücken, sieht dann so aus:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == CARCRE)
{
if(response)
{
new Float:x,Float:y,Float:z,Float: ZRot;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,ZRot);
if(listitem == 0)
{
CreateVehicle(494,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
else if(listitem == 1)
{
CreateVehicle(506,x,y,z,ZRot,1,1,-1);
SendClientMessage(playerid,0x00ff00ff,"Auto erstellt");
}
}
return 1;
}
return 1;//der 2., das hier fehlte
}
ehm ne bei mir keinem KEINE Errors
Nochmal auf Deutsch?