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;
}
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.
This is pretty fucked up, give me the dialogs code you used like ShowPlayerDialog
|
CMD:teles(playerid, params[])
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teleport Locations", "LVA\nSFA\nLSA", "OK", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
//------------------Weapons Dialog-----------------------
if(response)
{
switch(1)
{
case 1:
{
switch(listitem)
{
case 0: GivePlayerWeapon(playerid, 24, 90);
case 1: GivePlayerWeapon(playerid, 30, 250);
}
}
}
switch(2) // Teles Dialog
{
case 1:
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 1334.5587,1304.8950,10.5095);
SetPlayerInterior(playerid, 0);
}
}
}
}
}
return 1;
}
Try this
pawn Код:
|