20.06.2012, 07:31
Quote:
@Raxor, Nope it needs "switch (dialogid)" and when i add it, it gives errors "Undefined Symbol" GetClosestPlayerToPlayer.
|
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_ZCLASS:
{
if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
if(response)
{
switch(listitem)// Checking which listitem was selected
{
case 0:
{
if(gTeam[playerid] == Zombie)
{
new id = GetClosestPlayerToPlayer(playerid);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,z,z);
}
}
case 1:
{
//Whatever you want in case 1
}
}
}
}
}
}