- 0
Eroare compilare.
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Iulian
Salut, am inceput un sistem de palarii/sepci etc. si mi-a dat destule erori. le-am rezolvat pe toate dar una imi da batai de cap
EROARE:
[pawn]C:\Users\Iuly\Downloads\Testing Server\filterscripts\accesorii.pwn(91) : error 030: compound statement not closed at the end of file (started at line 52)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
[/pawn]
SCRIPT:
[pawn]//Linia 52
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_ACCESORII)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOG_ADAUGA,DIALOG_STYLE_LIST,"Alege modelul","Model 1 \nModel 2","Selecteaza","Aluneaza");
}
if(listitem == 1)
{
EditAttachedObject(playerid, 1);
SendClientMessage(playerid, 0xFFFFFFFF, "[Testing Server]: ~g~Modifica ~r~palaria/sapca !");
}
if(listitem == 2)
{
for ( new i = 0; i < 5; i ++ )
if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
RemovePlayerAttachedObject( playerid, i );
}
return 0;
}
if(dialogid == DIALOG_ADAUGA)
{
if(response)
{
if(listitem == 0)
{
SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
EditAttachedObject(playerid, 1);
}
if(listitem == 1)
{
SetPlayerAttachedObject( playerid, 1, 18891, 2, 0.094485, 0.007215, 0.0, 0.000000, 0.000000, 0.000000, 1.200000, 1.200000, 1.200000 );
EditAttachedObject(playerid, 1);
}
}
return 0;
}[/pawn]
EDIT: Am un warning si la ultimul return. loose indentation, l-am invartit in toate felurile si la fel
Rate me
2 answers to this question
Recommended Posts