Help with errors
#1

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
Reply
#2

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

NVM, resolved.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)