07.08.2013, 02:59
What's wrong with this?
I keep getting these errors, and it is only on the second dialog menu, which is the teles menu
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
//------------------Weapons Dialog-----------------------
if(dialogid == DIALOG_WEAPONS)
if(response)
{
switch(dialogid)
{
case 1://Our Dialog
{
switch(listitem)//Checking which was selected
{
case 0://first item
{
GivePlayerWeapon(playerid, 24, 90);
}
case 1: //second item
{
GivePlayerWeapon(playerid, 30, 250);
}
}
}
}
}
return 1;
}
//------------Teles Dialog---------------
if(dialogid == DIALOG_TELES)
{
if(response)
{
switch(dialogid)
{
case 1:
}
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1334.5587,1304.8950,10.5095);
SetPlayerInterior(playerid, 0);
}
}
}
}
}
return 1;
}
pawn Код:
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(229) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(231) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(233) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(235) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(237) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Critical Stunting\gamemodes\new.pwn(245) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.