C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\ConnectPanel.pwn(395) : error 014: invalid statement; not in switch C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\ConnectPanel.pwn(395) : warning 215: expression has no effect C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\ConnectPanel.pwn(402) : error 014: invalid statement; not in switch C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\filterscripts\ConnectPanel.pwn(402) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
if (dialogid == 22)
{
case 0;
{
SetPlayerHealth(playerid, 99999.0);
SetTimerEx("SpawnKill", 15000, false, "i", playerid);
SetTimerEx("Pro", 15000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw0);
}
case 1;
{
SetPlayerHealth(playerid, 100.0);
SetTimerEx("UnPro", 7000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw1);
}
}
{
switch(dialogid) //something like that not tested
if (dialogid == 22)
{
case 0;
{
SetPlayerHealth(playerid, 99999.0);
SetTimerEx("SpawnKill", 15000, false, "i", playerid);
SetTimerEx("Pro", 15000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw0);
}
case 1;
{
SetPlayerHealth(playerid, 100.0);
SetTimerEx("UnPro", 7000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw1);
}
pawn Код:
|
if(dialogid == 22) {i
if(!response) return SendClientMessage(playerid, 0xCC0000FF, "INFORMATION : You clicked Cancel");
switch(listitem) {
case 0:
{
SetPlayerHealth(playerid, 99999.0);
SetTimerEx("SpawnKill", 15000, false, "i", playerid);
SetTimerEx("Pro", 15000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw0);
}
case 1:
{
SetPlayerHealth(playerid, 100.0);
SetTimerEx("UnPro", 7000, 0, "i");
TextDrawShowForPlayer(playerid,Textdraw1);
}
}
return 1;
}
pawn Код:
|