Skripta koju koristim:SE
Detaljan opis problema:Zna li neko kako mogu da namestim ovu komandu/lideri da mi izbaci u cetu listu online lidera?
Dio skripte:
CitatCMD:lideri(playerid, params[])
{
#pragma unused params
new string[1024];
format(string, sizeof(string), "");
foreach(Player, i)
{
if (PlayerInfo[pLeader] >= 1 || PlayerInfo[pLeader] >=16)
{
new admtext[64];
new atext[20];
if(PlayerInfo[pLeader] == 1) { admtext = "{0049FF}LS PD{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 2) { admtext = "{0049FF}FBI{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 4) { admtext = "{FFA1A1}Hitna Pomoc{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 5) { admtext = "{F81414}The Russian Mafia"; }
else if(PlayerInfo[pLeader] == 6) { admtext = "{FFFFFF}The Escobar Cartel"; }
else if(PlayerInfo[pLeader] == 7) { admtext = "{FFFFFF}Predsednik Los Santos-a"; }
else if(PlayerInfo[pLeader] == 9) { admtext = "{00C0FF}Novinari{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 10) { admtext = "{F3FF02}Taxi{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 12) { admtext = "{FFAF00}Parking Servis{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 15) { admtext = "{F3FF02}18th Street Gang{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 16) { admtext = "{6EF83C}Balkan Snakes{FFFFFF}"; }
format(atext, sizeof(atext), "{FFFFFF}[ID %d] ", i);
strcat(string, atext);
strcat(string, "|{F81414} ");
strcat(string, ImeIgraca(i));
strcat(string, "{FFFFFF} | ");
format(admtext, sizeof(admtext), " {0084e3}Lider: {FFFFFF}%s |", admtext);
strcat(string, admtext);
strcat(string, "\n");
}
}
if(strlen(string) == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "{F81414}[SW:RP] {0084e3}Nijedan lider nije trenutno online!");
ShowPlayerDialog(playerid, 5674, DIALOG_STYLE_MSGBOX, "{F81414}Spisak Online Lidera", string, "Uredu", "");
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Nisi me razumeo.Mislio sam kad kucam /lideri da mi izbaci u cetu ,a ne kao sto je ova na sred ekrana
U dijalogu mu je :D
A uradjeno mu je 99%
A ja stvarno izgubim volju za pomoci kada neko nece ni da se potrudi kada mi dodje i kaze daj mi ovo uradi ja samo odem sa teme.
Ne moras mi pomoci,ja sam samo pitao jel zna neko jer sam ja pokusavao i nije mi islo
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18331) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18335) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18336) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18337) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18338) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\Desktop\gamemodes\south-europe.pwn(18339) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\gamemodes\south-europe.pwn(18340) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\gamemodes\south-europe.pwn(18341) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\gamemodes\south-europe.pwn(18342) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\gamemodes\south-europe.pwn(18343) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\gamemodes\south-europe.pwn(18344) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Alezars\\Desktop\\gamemodes\south-europe.pwn(18345) : error 032: array index out of bounds (variable "PlayerInfo")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
Linije
if (PlayerInfo[pLeader] >= 1 || PlayerInfo[pLeader] >=16)
if(PlayerInfo[pLeader] == 1) { admtext = "{0049FF}LS PD{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 2) { admtext = "{0049FF}FBI{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 4) { admtext = "{FFA1A1}Hitna Pomoc{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 5) { admtext = "{F81414}The Russian Mafia"; }
else if(PlayerInfo[pLeader] == 6) { admtext = "{FFFFFF}The Escobar Cartel"; }
else if(PlayerInfo[pLeader] == 7) { admtext = "{FFFFFF}Predsednik Los Santos-a"; }
else if(PlayerInfo[pLeader] == 9) { admtext = "{00C0FF}Novinari{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 10) { admtext = "{F3FF02}Taxi{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 12) { admtext = "{FFAF00}Parking Servis{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 15) { admtext = "{F3FF02}18th Street Gang{FFFFFF}"; }
else if(PlayerInfo[pLeader] == 16) { admtext = "{6EF83C}Balkan Snakes{FFFFFF}"; }
Hvala :) Moze lock