SA-MP Forums Archive
Help with errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with errors (/showthread.php?tid=463104)



Help with errors - Lidor124 - 10.09.2013

i dont know what wrong....

Код:
if(dialogid == MUSIC_FR)
	{
	    if(response)
	    for(new i = 0 < MAX_PLAYERS; 1++)
	    {
	        if(listitem == 0)
	        {
	            PlayAudioStreamForPlayer(i, "http://k002.kiwi6.com/hotlink/3mpmtejfsv/flo_rida_-_i_cry.mp3");
			}
			if(listitem == 1)
			{
			    PlayAudioStreamForPlayer(i, "http://k002.kiwi6.com/hotlink/tjht7q5i0u/flo_rida_-_whistle.mp3");
			}
			if(listitem == 2)
			{
			    PlayAudioStreamForPlayer(i, "http://k002.kiwi6.com/hotlink/1uea2n229q/flo_rida_-_wild_ones_ft._sia.mp3");
				}
			}
		return 1;
}
errors:

Код:
C:\Users\Mor\Desktop\CGRP v1.1\gamemodes\CGRP.pwn(74203) : error 022: must be lvalue (non-constant)
line 74203:

Код:
for(new i = 0 < MAX_PLAYERS; 1++)
my defines:

Код:
#define MUSIC_FR 5004 // Florida



Re: Help with errors - Konstantinos - 10.09.2013

Change to:
pawn Код:
for(new i = 0 < MAX_PLAYERS; i++)
you increase the i + 1.


Re: Help with errors - Lidor124 - 10.09.2013

NVM, resolved.