Little Help
#1

I got those errors
Код:
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.
and this is lines in which are that errors
pawn Код:
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);
        }
    }
Reply
#2

pawn Код:
{
    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);
}
Reply
#3

Your statement is not in switch thats why the error is coming
Reply
#4

Quote:
Originally Posted by Mr_Scripter
Посмотреть сообщение
pawn Код:
{
    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);
}
I tyred it and i got a lot of errors
Reply
#5

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;
    }
Reply
#6

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
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;
    }
Working thanks
Reply
#7

No Problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)