[Pomoc] assumed zero

Započeo slasher, Mart 29, 2013, 00:33:15 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: BE
Detaljan opis problema: Pa ne razumem bas sta mi ovaj error govori invalid expression, assumed zero , javlja mi se u linijama za pustanje radija, treba mi neko da mi objasni u cemu je problem :)
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://zaslike.com/files/flcs3eesn3rmmodeyf.jpg


Daj liniju na kojoj je error

MARIO WLSECO • KUCNI SERVER • SMECAR

tacnije ima vise errora ali svi su isti oko radija je problem

Linije
(18284) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18284) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18292) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18292) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18300) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18300) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18308) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18308) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18316) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18316) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18324) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18324) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18332) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18332) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18340) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18340) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18348) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18348) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18356) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18356) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18364) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18364) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18372) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18372) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18380) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18380) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18388) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18388) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18396) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18396) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18404) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18404) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18412) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18412) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18420) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18420) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18428) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18428) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18436) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18436) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18444) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18444) : warning 215: expression has no effect
D:\BE x13_\gamemodes\nasmod.pwn(18452) : error 029: invalid expression, assumed zero
D:\BE x13_\gamemodes\nasmod.pwn(18452) : warning 215: expression has no effect

Pa daj baš liniju gdje je error.

Last nick: Paradox

if(dialogid == 1413)
	   {
        switch(listitem)
        {
        			case 0:
          			{
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayAudioStreamForPlayer(playerid, "Muzika ugasena");
                        format(string, sizeof(string), "* %s gasi svoj radio prijemnik /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
	                }
		            case 1:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://streaming.tdiradio.com:9000");
			            format(string, sizeof(string), "* %s pusta radio TDI /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 2:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://78.129.199.49:12100");
			            format(string, sizeof(string), "* %s pusta radio MORAVU /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 3:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://109.206.96.11:8000");
			            format(string, sizeof(string), "* %s pusta radio TOPFM /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 4:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://78.129.199.49:12100/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Morava-Jagodina /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 5:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://176.9.66.104:8866/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Ljubic-Prnjavor /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 6:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://89.149.245.235/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Pink /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 7:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://rtvmerak.com:8003/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Juzni Vetar /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 8:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://213.239.205.210:6020/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Cool /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 9:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://84.41.105.36:8200/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Feral /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 10:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://stream.rtvbn.com:8522/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Bijeljina /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 11:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://carsija.topstream.net:19406/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Sarajevo /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 12:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Balkan DJ /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 13:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://176.9.79.227:8567/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Knidza /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 14:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://vicko-streaming.eu:16006/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Pozarevac /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 15:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://naxidigital48.kbcnet.rs:8040/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Naxi /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 16:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://radios64.streaming.rs:9100/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Radio S /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 17:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://desetka.exyustream.com/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Desetka /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 18:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "hhttp://www.uzivoradio.com/city-nis.html");
			            format(string, sizeof(string), "* %s pusta radio City-Nis /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
	                }
		            case 19:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://www.mobile.ba:52000/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Dzungla /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 20:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://217.23.192.3:8002/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Uno /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		                return 1;
                    }
		            case 21:
		            {
			            GetPlayerName(playerid, sendername, sizeof(sendername));
			            PlayAudioStreamForPlayer(playerid, "http://stream.get-host.net:8000/listen.pls");
			            format(string, sizeof(string), "* %s pusta radio Bex /radioplay", sendername);
		                ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						RadioOffOn[playerid] = 1;
		                return 1;
                    }
                }
       		}

Daj nam jednu liniju na kojoj baca ne 100 linija ..
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N

PlayAudioStreamForPlayer(playerid, "http://www.mobile.ba:52000/listen.pls");

Citat: Billy poslato Mart 29, 2013, 15:50:21 POSLE PODNE
PlayAudioStreamForPlayer(playerid, "http://www.mobile.ba:52000/listen.pls");


Ta linija je u redu .. ;)
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N



Je u redu je !
Hmmmm
Probaj ovako ove linije maknuti i napraviti ovako:


GetPlayerName(playerid, sendername, sizeof(sendername));


i umjesto njih staviti ovako:

format(string, sizeof(string), "%s tvoj string", GetName(playerid));
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);


i dodati dolje stock di imas druge:

stock GetName(playerid)
{
	new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if(name[i] == '_') name[i] = ' ';
    }
    return name;
}


npr.

case 0:
{
	PlayAudioStreamForPlayer(playerid, "Muzika ugasena");
	format(string, sizeof(string), "* %s gasi svoj radio prijemnik /radioplay", GetName(playerid));
	ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
 }
Poslednja Izmena: Mart 29, 2013, 17:55:05 POSLE PODNE od FlasH
BIG RESPEKT: Blaeks,  [CRP] Joey_, David (Sabljak) A.k.A SABO(T), joXy_, Dimi, Sexserghy ♥, TerminuS, H1TM4N