20.06.2012, 08:03
lol and it's not working for me..
Btw
and errors
Btw
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_ZCLASS:
{
if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
if(response)
{
switch(listitem)
{
case 0:
{
if(gTeam[playerid] == Zombie)
{
new id = GetClosestPlayer(id);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,z,z);
}
case 1:
{
}
}
}
}
return 1;
}
case DIALOG_VCLASS:
{
if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
if(response)
{
switch(listitem)
{
case 0:
{
if(gTeam[playerid] == Vampire)
{
new id = GetClosestPlayer(id);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerPos(playerid,x,z,z);
}
case 1:
{
}
}
}
}
}
}
Код:
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 014: invalid statement; not in switch C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : warning 215: expression has no effect C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 001: expected token: ";", but found ":" C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 029: invalid expression, assumed zero C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.