[Pomoc] errori


Započeo LoOdaK, Maj 08, 2015, 23:34:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja xD
Detaljan opis problema: evo ovako znaci pravio sam komandu /a tj admin chat i sada imam jedan error ali nije vezan za njega nego sam morao napravim SendAdminMessage pa u njemu trebam foreach ali ne mogu da nadjem znaci evo dole cu da dam admin komandu pa onda forward i public tog Sendadmin messaga
Dio skripte:KOMANDA /A
CMD:a(playerid, params[])
{
	new result[56],name[MAX_PLAYER_NAME],arank[64],msg[128];
	if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, SIVA,"[UB Administracija] Niste ovlasceni da koristite ovu komandu");
	if(sscanf(params,"u",result)) return SCM(playerid, SIVA,"Koristi: /a [text]");
	else
	{
	    GetPlayerName(playerid,name,sizeof(name));
	    if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin lvl 1"; }
		else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin lvl 2"; }
		else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin lvl 3"; }
		else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin lvl 4"; }
		else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Glavni Admin"; }
		else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Vlasnik"; }
		else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Skripter"; }
	    format(msg,sizeof(msg),"** %s %s:  %s", arank, name, result);
	    SendAdminMessage(OS, msg);// evo za ovo mi je trebao foreach
	}
	return 1;
}

FORWARD I PUBLIC SENDADMINMESSAGE
public SendAdminMessage(color, string[])
{
	foreach (Player, i) // ovde je error undefined symbol foreach
	{
	    if(PlayerInfo[i][pAdmin] >= 1) // ovde je undefined symbol i
	    {
			SCM(i, color, string); // ovde je undefined symbol i
		}
	}
}

forward SendAdminMessage(color, string[]);

Neke slike/video za lakse dobivanje pomoci(neobavezno): //////////////
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Denis_Lapi

*

Balkan SA:MP Web Designer

Je l' imas #include <foreach> na pocetku skripte?

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

 :'( Ne ne mogu da nadjem foreach da skinem.

EDIT: evo sredio sam moze lock
Poslednja Izmena: Maj 09, 2015, 15:43:56 POSLE PODNE od ●•٠·Dolke ·٠•●
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!