Skripta koju koristim:moja
Detaljan opis problema:[pawn](60247) : error 025: function heading differs from prototype
(60248) : error 025: function heading differs from prototype[/pawn]
Dio skripte:[pawn]
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);//60247
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)//60248
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if(!BigEar)
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
} }
}
}
return 1;
}
[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
mhm, daj mi par linija iznad tog?
Citat: Vuzimir poslato Oktobar 31, 2015, 09:44:39 PRE PODNE
mhm, daj mi par linija iznad tog?
[pawn] switch (dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(response)
{
{
if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
{
new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
{
new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
{
new INI:File = INI_Open(Korisnici(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"NovacDzep",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubistava",0);
INI_WriteInt(File,"Smrti",0);
INI_WriteInt(File,"Level",1);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"Spol",0);
INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Email",0);
INI_WriteInt(File,"Lider",0);
INI_WriteInt(File,"Clan",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Mutiran",0);
INI_WriteInt(File,"NovacBanka",0);
INI_WriteInt(File,"Warn",0);
INI_WriteInt(File,"BankovniRacun",0);
INI_WriteInt(File,"Zatvor",0);
INI_WriteInt(File,"ZatvorenVreme",0);
INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"UhapsenPuta",0);
INI_WriteInt(File,"Droga",0);
INI_WriteInt(File,"Mats",0);
INI_WriteInt(File,"PayDayPoeni",0);
INI_WriteInt(File,"SatiIgre",0);
INI_WriteInt(File,"IznosRate",0);
INI_WriteInt(File,"IznosKredita",0);
INI_WriteInt(File,"PreostaloZaOtplatu",0);
INI_WriteInt(File,"ADozvola",0);
INI_WriteInt(File,"KamionDozvola",0);
INI_WriteInt(File,"AvionDozvola",0);
INI_WriteInt(File,"MotorDozvola",0);
INI_WriteInt(File,"BrodDozvola",0);
INI_WriteInt(File,"GunDozvola",0);
INI_WriteInt(File,"PosedovanjeFirme",-1);
INI_WriteInt(File,"Mobilni",0);
INI_WriteInt(File,"Imenik",0);
INI_WriteInt(File,"MobKredit",0);
INI_WriteInt(File,"Cigare",0);
INI_WriteInt(File,"Upaljac",0);
INI_WriteInt(File,"Kanap",0);
INI_WriteInt(File,"Naocare",0);
INI_WriteInt(File,"Sat",0);
INI_WriteInt(File,"BorbeniStil",4);
INI_WriteInt(File,"Posao",0);
INI_WriteInt(File,"Hrana",0);
INI_WriteInt(File,"PosedovanjeKuce",-1);
INI_WriteInt(File,"ProveraSpawna",0);
INI_WriteInt(File,"Rent",-1);
INI_WriteInt(File,"PosedovanjeStana",-1);
INI_WriteInt(File,"PosedovanjeVikendice",-1);
INI_WriteInt(File,"OrgUgovor",0);
INI_WriteInt(File,"PosaoUgovor",0);
INI_WriteInt(File,"PosedovanjeAuta",-1);
INI_WriteInt(File,"DzeparosVreme",0);
INI_WriteInt(File,"PosedovanjeMotora",-1);
INI_WriteInt(File,"Kaciga",-1);
INI_WriteInt(File,"PosedovanjeBicikla",-1);
INI_WriteInt(File,"PosedovanjeAviona",-1);
INI_WriteInt(File,"PosedovanjePlovila",-1);
INI_WriteInt(File,"DonatorBodovi", 0);
INI_WriteInt(File,"RadarskaKazna", 0);
INI_Close(File);
PlayerInfo[playerid][pNovacBanka] = 1000; PlayerInfo[playerid][pNovacDzep] = 20000; GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
new string[128];
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo[playerid][pLevel] = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
}
}
[/pawn]
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
foreach(Player, i)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if(!BigEar[i])
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if(((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SCM(i, col1, string);
}
else if(((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SCM(i, col2, string);
}
else if(((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SCM(i, col3, string);
}
else if(((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SCM(i, col4, string);
}
else if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SCM(i, col5, string);
}
}
else
{
SCM(i, col1, string);
}
}
}
}//not connected
return 1;
}
[pawn]if(!ProveraRPImena(playerid))
{
StatusKonekta(playerid, 2);
return 1;
}[/pawn] Ovo sam dodao greska i maknuo i opet greska!
-Druže jel ti izbaciva eror na ProxDetector ?
//-----------------------------Ovo dodaj pod OnPlayerConnect
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!IsRPName(name) || !NameValidator(playerid))
//---------------------------------------------------Ove stockove dodaj gdje su ti ostali
stock IsRPName(const name[], max_underscores = 2)
{
new underscores = 0;
if (name[0] < 'A' || name[0] > 'Z') return false; // First letter is not capital
for(new i = 1; i < strlen(name); i++)
{
if(name[i] != '_' && (name[i] < 'A' || name[i] > 'Z') && (name[i] < 'a' || name[i] > 'z')) return false; // a-zA-Z_
if( (name[i] >= 'A' && name[i] <= 'Z') && (name[i - 1] != '_') ) return false; // unneeded capital letter
if(name[i] == '_')
{
underscores++;
if(underscores > max_underscores || i == strlen(name)) return false; // More underlines than limit, or underline at the last pos
if(name[i + 1] < 'A' || name[i + 1] > 'Z') return false; // Not a capital letter after underline
}
}
if (underscores == 0) return false; // No underline detected
return true;
}
stock NameValidator(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(strfind(pname,"Mater",true) != (-1)) return 0;
else if(strfind(pname,"Kurac",true) != (-1)) return 0;
else if(strfind(pname,"Picka",true) != (-1)) return 0;
else if(strfind(pname,"Retard",true) != (-1)) return 0;
else if(strfind(pname,"Botina",true) != (-1)) return 0;
else if(strfind(pname,"//",true) != (-1)) return 0;Ovdje dodaj sta hoces
return 1;
}
Citat: United Extreme RolePlay poslato Oktobar 31, 2015, 10:07:43 PRE PODNE
//-----------------------------Ovo dodaj pod OnPlayerConnect
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!IsRPName(name) || !NameValidator(playerid))
//---------------------------------------------------Ove stockove dodaj gdje su ti ostali
stock IsRPName(const name[], max_underscores = 2)
{
new underscores = 0;
if (name[0] < 'A' || name[0] > 'Z') return false; // First letter is not capital
for(new i = 1; i < strlen(name); i++)
{
if(name[i] != '_' && (name[i] < 'A' || name[i] > 'Z') && (name[i] < 'a' || name[i] > 'z')) return false; // a-zA-Z_
if( (name[i] >= 'A' && name[i] <= 'Z') && (name[i - 1] != '_') ) return false; // unneeded capital letter
if(name[i] == '_')
{
underscores++;
if(underscores > max_underscores || i == strlen(name)) return false; // More underlines than limit, or underline at the last pos
if(name[i + 1] < 'A' || name[i + 1] > 'Z') return false; // Not a capital letter after underline
}
}
if (underscores == 0) return false; // No underline detected
return true;
}
stock NameValidator(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(strfind(pname,"Mater",true) != (-1)) return 0;
else if(strfind(pname,"Kurac",true) != (-1)) return 0;
else if(strfind(pname,"Picka",true) != (-1)) return 0;
else if(strfind(pname,"Retard",true) != (-1)) return 0;
else if(strfind(pname,"Botina",true) != (-1)) return 0;
else if(strfind(pname,"//",true) != (-1)) return 0;Ovdje dodaj sta hoces
return 1;
}
Resio sam to samo u FS sam dodo da mogu samo ja s non rp imenom ali imamm ovdje eror to mi treba.
Daj kod gdje ti eror izbaciva ?
Citat: United Extreme RolePlay poslato Oktobar 31, 2015, 10:11:25 PRE PODNE
Daj kod gdje ti eror izbaciva ?
(60247) : error 025: function heading differs from prototype
(60248) : error 025: function heading differs from prototype
Kod ?
[pawn]switch (dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(response)
{
{
if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
{
new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
{
new regstring[512], regname[64]; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
{
new INI:File = INI_Open(Korisnici(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"NovacDzep",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubistava",0);
INI_WriteInt(File,"Smrti",0);
INI_WriteInt(File,"Level",1);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"Spol",0);
INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Email",0);
INI_WriteInt(File,"Lider",0);
INI_WriteInt(File,"Clan",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Mutiran",0);
INI_WriteInt(File,"NovacBanka",0);
INI_WriteInt(File,"Warn",0);
INI_WriteInt(File,"BankovniRacun",0);
INI_WriteInt(File,"Zatvor",0);
INI_WriteInt(File,"ZatvorenVreme",0);
INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"UhapsenPuta",0);
INI_WriteInt(File,"Droga",0);
INI_WriteInt(File,"Mats",0);
INI_WriteInt(File,"PayDayPoeni",0);
INI_WriteInt(File,"SatiIgre",0);
INI_WriteInt(File,"IznosRate",0);
INI_WriteInt(File,"IznosKredita",0);
INI_WriteInt(File,"PreostaloZaOtplatu",0);
INI_WriteInt(File,"ADozvola",0);
INI_WriteInt(File,"KamionDozvola",0);
INI_WriteInt(File,"AvionDozvola",0);
INI_WriteInt(File,"MotorDozvola",0);
INI_WriteInt(File,"BrodDozvola",0);
INI_WriteInt(File,"GunDozvola",0);
INI_WriteInt(File,"PosedovanjeFirme",-1);
INI_WriteInt(File,"Mobilni",0);
INI_WriteInt(File,"Imenik",0);
INI_WriteInt(File,"MobKredit",0);
INI_WriteInt(File,"Cigare",0);
INI_WriteInt(File,"Upaljac",0);
INI_WriteInt(File,"Kanap",0);
INI_WriteInt(File,"Naocare",0);
INI_WriteInt(File,"Sat",0);
INI_WriteInt(File,"BorbeniStil",4);
INI_WriteInt(File,"Posao",0);
INI_WriteInt(File,"Hrana",0);
INI_WriteInt(File,"PosedovanjeKuce",-1);
INI_WriteInt(File,"ProveraSpawna",0);
INI_WriteInt(File,"Rent",-1);
INI_WriteInt(File,"PosedovanjeStana",-1);
INI_WriteInt(File,"PosedovanjeVikendice",-1);
INI_WriteInt(File,"OrgUgovor",0);
INI_WriteInt(File,"PosaoUgovor",0);
INI_WriteInt(File,"PosedovanjeAuta",-1);
INI_WriteInt(File,"DzeparosVreme",0);
INI_WriteInt(File,"PosedovanjeMotora",-1);
INI_WriteInt(File,"Kaciga",-1);
INI_WriteInt(File,"PosedovanjeBicikla",-1);
INI_WriteInt(File,"PosedovanjeAviona",-1);
INI_WriteInt(File,"PosedovanjePlovila",-1);
INI_WriteInt(File,"DonatorBodovi", 0);
INI_WriteInt(File,"RadarskaKazna", 0);
INI_Close(File);
PlayerInfo[playerid][pNovacBanka] = 1000; PlayerInfo[playerid][pNovacDzep] = 20000; GivePlayerMoney(playerid, PlayerInfo[playerid][pNovacDzep]);
new string[128];
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo[playerid][pLevel] = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
}
}[/pawn]U zagradama je problem ovde.
Da druze al nisi mi kopiro kod gdje pokaziva eror kopiraj mi gdje ti izbaciva samo to ?
Citat: United Extreme RolePlay poslato Oktobar 31, 2015, 10:16:28 PRE PODNE
Da druze al nisi mi kopiro kod gdje pokaziva eror kopiraj mi gdje ti izbaciva samo to ?
Eror pokazuje kod ProxDetector alo to je posle tog dakle tu je greska sa "}" ili "{"
ubaci ovo gdje ti pokazuje na kraj dole } { sad bi trebalo bit ok :-\ ?
new string[128];
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo[playerid][pLevel] = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
}
}
Citat: United Extreme RolePlay poslato Oktobar 31, 2015, 10:20:12 PRE PODNE
ubaci ovo gdje ti pokazuje na kraj dole } { sad bi trebalo bit ok :-\ ?
new string[128];
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo[playerid][pLevel] = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
}
}
[pawn]C:\Users\Nikola\Dropbox\NSRP novo\gamemodes\niksy.pwn(60240) : error 025: function heading differs from prototype
C:\Users\Nikola\Dropbox\NSRP novo\gamemodes\niksy.pwn(60241) : error 025: function heading differs from prototype[/pawn]
Zaboravio imam jos "errora"!
[pawn]C:\Users\Nikola\Dropbox\NSRP novo\gamemodes\niksy.pwn(38418) : error 010: invalid function or declaration
C:\Users\Nikola\Dropbox\NSRP novo\gamemodes\niksy.pwn(38423) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Nikola\Dropbox\NSRP novo\gamemodes\niksy.pwn(38426) : error 010: invalid function or declaration[/pawn]
Code:
[pawn]CMD:marama(playerid, params[], komande)
{
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"{FF6600}BN:RP | "BELA"Moras se ulogovati da bi koristio ovu komandu!");
if(Marama[playerid] == 0) return SCM(playerid,-1,""ZUTA"[BN:RP] {FFFFFF}Nemate maramu!");
new string[80];
if(PlayerInfo[playerid][pZatvor] > 0) return SCM(playerid, -1, "[BN:RP] "ZUTA"Ne mozete koristiti ovu komandu jer ste u zatvoru!");
if(Marama[playerid] == 1)
{
SetPlayerAttachedObject(playerid, MARAMA_SLOT, 18913, 2, -0.08, 0.03, 0.0, 90, -180, -90);
format(string, sizeof(string), "* %s stavlja maramu.", GetName(playerid));
ProxDetector(20.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SCM(playerid,-1,""ORANGE"Stavili ste maramu da je skinete kucajte /marama!");
Marama[playerid] = 2;
}
}
else if(Marama[playerid] == 2)
{
RemovePlayerAttachedObject(playerid, MARAMA_SLOT);//38418
format(string, sizeof(string), "* %s skida maramu.", GetName(playerid));
ProxDetector(20.0, playerid, string, PROX,PROX,PROX,PROX,PROX);//
SCM(playerid,-1,""ORANGE"Skinuli ste maramu da je ponovo stavite kucajte /marama!");//
Marama[playerid] = 1;
}//38423
return 1;
}
////////////////////////////////////////////////////////////////////////////////38426[/pawn]
Vuzmire dam ti ceo gm u privatnu poruku ako mos resit plis.
Citat: GamingNiksy poslato Oktobar 31, 2015, 10:45:28 PRE PODNE
Vuzmire dam ti ceo gm u privatnu poruku ako mos resit plis.
posalji
Ne mogu da popravim ovo jer imas 300+ warninga u skripti bilo koji od tih mogu uzrokovati taj error da se to desi... Ako neko zna kako da to rijesi neka mu ovje pomogne :)
Citat: Vuzimir poslato Oktobar 31, 2015, 11:19:58 PRE PODNE
Ne mogu da popravim ovo jer imas 300+ warninga u skripti bilo koji od tih mogu uzrokovati taj error da se to desi... Ako neko zna kako da to rijesi neka mu ovje pomogne :)
Warnigovi sve znam koji su to si pripremam za big update nikome nemoj gm onda dati!
Da nemaš slucajno dva prox detectora sa istim imenom a razlicitim parametrima?
Ne. Može lock i imam samo 30warninga rešio sam bio je problem kod DIALOGA sa "{"