Help Me, Error
#1

Hello everyone, I have a errror with pawno
here is the errors
pawn Код:
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 029: invalid expression, assumed zero
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : warning 215: expression has no effect
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 001: expected token: ";", but found ")"
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : error 029: invalid expression, assumed zero
D:\Desktop\Server\Lipton\gamemodes\liptonrp.pwn(3575) : fatal error 107: too many error messages on one line
pawn Код:
if(Keys == KEY_ANALOG_UP ,, Keys == KEY_WALK);
        {
            if(selezionato[playerid] < 4)
            {
                selezionato[playerid] = selezionato[playerid] + 14 - 3;
            }else{
                selezionato[playerid] -= 3;
            }
            Draw(playerid);
        }
        if(Keys == KEY_ANALOG_DOWN ,, Keys == KEY_SPRINT && GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)
        {
            if(selezionato[playerid] > 11)
            {
                selezionato[playerid] = selezionato[playerid] - 14 + 3;
            }else{
                selezionato[playerid] += 3;
            }
            Draw(playerid);
        }

        if(Keys ==KEY_ACTION)
        {
            new sel;
            sel=selezionato[playerid];

            if(sel==12)
            {
                if(Player[playerid][cifre] >= 1)
                {
                    strdel(Player[playerid][composed], Player[playerid][cifre]-1, Player[playerid][cifre]);
                    TextDrawSetString(numero[playerid],Player[playerid][composed]);
                    Player[playerid][cifre]--;
                }
            }

            if(sel==14)
            {
            DestroyCellTextDraws(playerid);
            new i = playerid;
            Player[i][composed] = 0;
            Player[i][cifre] = 0;
            mode[playerid] = 0;
            TextDrawHideForAll(dietro[i]);
            TextDrawHideForAll(n73[i]);
            TextDrawHideForAll(display[i]);
            TextDrawHideForAll(marca[i]);
            TextDrawHideForAll(fotocamera[i]);
            TextDrawHideForAll(joy[i]);
            TextDrawHideForAll(box[i]);
            TextDrawHideForAll(stt[i]);
            TextDrawHideForAll(uno[i]);
            TextDrawHideForAll(due[i]);
            TextDrawHideForAll(tre[i]);
            TextDrawHideForAll(quattro[i]);
            TextDrawHideForAll(cinque[i]);
            TextDrawHideForAll(sei[i]);
            TextDrawHideForAll(sette[i]);
            TextDrawHideForAll(otto[i]);
            TextDrawHideForAll(nove[i]);
            TextDrawHideForAll(asterisco[i]);
            TextDrawHideForAll(zero[i]);
            TextDrawHideForAll(cancelletto[i]);
            TextDrawHideForAll(rosso[i]);
            TextDrawHideForAll(verde[i]);
            }
sorry for my English, I'm Italian
Thanks in advance
Reply
#2

Error Line please?
Reply
#3

What are the two commas for in your if statement?
Reply
#4

This error is the line:
pawn Код:
if(Keys == KEY_ANALOG_UP ,, Keys == KEY_WALK)
Reply
#5

NVM

pawn Код:
if(Keys == KEY_ANALOG_UP , Keys == KEY_WALK)
Reply
#6

The single comma wouldn't work either, you need "||" (or statement)
Reply
#7

Why are there two "," between KEY_ANALOG_UP and Keys
You have to replace those ,, with &&
Reply
#8

error solved, thanks to all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)