error 029: invalid expression, assumed zero
#1

Код:
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9853) : error 029: invalid expression, assumed zero
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : error 029: invalid expression, assumed zero
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : warning 215: expression has no effect
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : error 001: expected token: ";", but found ")"
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : error 029: invalid expression, assumed zero
C:\Users\Matt\Desktop\SA-MP Files\PHT\gamemodes\ptbt.pwn(9890) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
if(dialogid == Radiodialog)
    {
        if(!response) return 0;
        if(listitem == 0)
        {
        PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=914897");
        SendClientMessage(playerid, yellow, "[SERVER]: You have choosen Channel 1, Type /off to stop audio streaming.");
        return 1;
        }
        if(listitem == 1)
        {
           
        }
        if(listitem == 2)
        {
           
        }
        if(listitem == 3)
        {
           
        }
        if(listitem == 4)
        {
           
        }
    }
    return 1;
}
CMD:stop(playerid, params[])
{
    StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid, 0xAA3333AA, "You've Turned Off The Radio");
    return 1;
}
CMD:radio(playerid,params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid,Radiodialog,2,""lwhite"Radio List",""lwhite"idobi Radio: New. Music. Unfiltered. idobi.com","Select","Hide");
    format(str, sizeof(str), "[Player-Act]: %s has used /cmds(/commands)",GetPName(playerid));
    SendAdminMessage(green2,str);
    return 1;
}
More URL will be add when fixed and more station will be add in dialogs
Reply
#2

where exactly is the error lines?
Reply
#3

Quote:
Originally Posted by Eth
Посмотреть сообщение
where exactly is the error lines?
9853
PHP код:
if(dialogid == Radiodialog
9890
PHP код:
ShowPlayerDialog(playerid,Radiodialog,2,""lwhite"Radio List",""lwhite"idobi Radio: New. Music. Unfiltered. idobi.com","Select","Hide"); 
Reply
#4

pawn Код:
""lwhite""
...to...
pawn Код:
""#lwhite""
I'm assuming you defined lwhite.
Reply
#5

Quote:
Originally Posted by Manyula
Посмотреть сообщение
pawn Код:
""lwhite""
...to...
pawn Код:
""#lwhite""
I'm assuming you defined lwhite.
i think this will increase the error because i didn't define any #lwhite


EDIT: lol i just forgot the put the ID fixed now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)