No logro encontrar la causa del warning al compilar
#1

Hola , queria saber si alguien me podria ayudar con esto , ya que al momento de compilar me tira warning y intente solucionarlo sustituyendo el "for(new)" Por un foreach (para detectar al jugador ) pero tampoco me sirvio ,ahora no se si debo sustituir el "for (new w1) " quisas ahi esta el error........

Linea 12524 :
Код:
for(new w1 = 0; w1 < sizeof(MegaphoneSounds); w1++)
Код:
if(dialogid == DIALOG_MEGAPHONE_MENU)
	{
		if(!response) return SCM(playerid, COLOR_WHITE, "Cancel");
		new soundid, tw1 = 0;
        for(new w1 = 0; w1 < sizeof(MegaphoneSounds); w1++)
        {
            if(tw1 != listitem)
            {
                tw1++;
                continue;
            }
            new tmp1[2][128];
            split(MegaphoneSounds[w1], tmp1, ',');
            soundid = strval(tmp1[0]);
            break;
        }
        new Float:pos[4];
        GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        PlaySoundEx(soundid, pos[0], pos[1], pos[2], 15);
        return 1;
	}
	return 0;
}
Al momento de compilar me tira estos errores :

Код:
(12524) : error 017: undefined symbol "MegaphoneSounds"
(12524) : error 036: empty statement
(12524) : error 017: undefined symbol "w1"
(12524) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)