08.07.2013, 10:38
hello again and if i spam i'm very sorry...
here the code:
error:
here the code:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_TRUCK:
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,DIALOG_TRUCKL,DIALOG_STYLE_LIST,"What do you want to transport?","{00F70C}Food & beverages\n{00F70C}Clothing\n{00F70C}24/7 Items", "Select", "Cancel");
}
case 1:
{
ShowPlayerDialog(playerid,DIALOG_TRUCKI,DIALOG_STYLE_LIST,"What do you want to transport?","{FF0606}Weapons {FFFFFF}(Level 1 Bonus: Free Weapons)\n{FF0606}Drugs {FFFFFF}(Level 1 Bonus: Free 10 pot, 10 crack)","Choose","Cance");
}
}
}
}
case DIALOG_TRUCKL:
{
if(response)
{
switch(listitem)
{
case 0:
{
TogglePlayerControllable(playerid,1);
CP[playerid] = 2;
SetPlayerCheckpoint(playerid,2264.3049,-1690.5104,13.6958,4.0);
}
case 1:
{
TogglePlayerControllable(playerid,1);
CP[playerid] = 3;
SetPlayerCheckpoint(playerid,786.7734,-1635.9037,13.3828,4.0);
}
}
}
}
}
return 1;
}
return 0; // this is line 573
}
pawn Код:
C:\Users\Admin\Desktop\NewServerss_2\filterscripts\Job.pwn(573) : error 010: invalid function or declaration