Započeo Jerenic
•9. Maj 2018.• ZaključanoKomanda '/avozilo'
1,429
pregleda
13
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
290
Postovi:
30
Teme:
Pridružio se:Mar. 2018
9. Maj 2018.
Problem(error/warning): Kada ukucam /avozilo ne izbacuje onaj selection menu.
Dio skripte: Cela komanda ->
Debug iz server_log: //
Slika/video ingame problema(obavezno ako je ingame problem): Nema potrebe
Dio skripte: Cela komanda ->
YCMD:avozilo(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,"PG:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"PG:RP| "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
if(PlayerInfo >= 1 || PlayerInfo >= 1)
{
if(AdminDuty == 0 && GMDuty == 0) return SCM(playerid,-1,""CRVENA"[SA:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(GetPVarInt(playerid, "stvorioavozilo") == 0) ShowModelSelectionMenu(playerid, vozilolist, "Adm Vozila");
else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
{
DestroyVehicle(adminvozilo);
Delete3DTextLabel(avehl);
adminvozilo = -1;
SetPVarInt(playerid, "stvorioavozilo", 0);
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin & GM Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[SA:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}
Debug iz server_log: //
Slika/video ingame problema(obavezno ako je ingame problem): Nema potrebe
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
241 / 250 XP
Početnik(0)
663
Postovi:
99
Teme:
Pridružio se:Nov. 2016
9. Maj 2018.
Probaj ovako 😄
YCMD:avozilo(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,"PG:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"PG:RP| "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
if(PlayerInfo >= 1 || PlayerInfo >= 1)
{
if(AdminDuty == 0 && GMDuty == 0) return SCM(playerid,-1,""CRVENA"[SA:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(GetPVarInt(playerid, "stvorioavozilo") == 1) ShowModelSelectionMenu(playerid, vozilolist, "Adm Vozila");
else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
{
DestroyVehicle(adminvozilo);
Delete3DTextLabel(avehl);
adminvozilo = -1;
SetPVarInt(playerid, "stvorioavozilo", 0);
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin & GM Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[SA:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
290
Postovi:
30
Teme:
Pridružio se:Mar. 2018
9. Maj 2018.
ᴇᴅᴠᴄᴀsᴛᴇʟʟʟᴀɴᴠwrote on May 9, 2018, 8:05 pm:
Probaj ovako 😄
YCMD:avozilo(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera == 0) return SCM(playerid,-1,"PG:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"PG:RP| "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
if(PlayerInfo >= 1 || PlayerInfo >= 1)
{
if(AdminDuty == 0 && GMDuty == 0) return SCM(playerid,-1,""CRVENA"[SA:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(GetPVarInt(playerid, "stvorioavozilo") == 1) ShowModelSelectionMenu(playerid, vozilolist, "Adm Vozila");
else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
{
DestroyVehicle(adminvozilo);
Delete3DTextLabel(avehl);
adminvozilo = -1;
SetPVarInt(playerid, "stvorioavozilo", 0);
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin & GM Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[SA:RP] "SIVA"Samo Admini & GameMasteri.");
return 1;
}Ne radi.
Cika @.кÑундер -u, moze pomoc?
Crime Lord
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
120 / 250 XP
Početnik(8)
756
Postovi:
73
Teme:
Pridružio se:Apr. 2017
9. Maj 2018.
De pro vjeri showanje, to vidi imal , jer to prikazuje TD od vozila, ako ne poslat cu ti ujutro svoj dio skripte
Vlasnik Zajednice: Ghost Town since 2016
Vlasnik Zajednice : Spotify Ogc since 2018
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
102
Postovi:
18
Teme:
Pridružio se:Jan. 2018
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
313
Postovi:
27
Teme:
Pridružio se:Jan. 2018
10. Maj 2018.
InasSkripterlji wrote on May 10, 2018, 3:11 pm:
Jesil ubacio tdove msm zavisi koji je ali jesi li??
Ne pita to,nego postoji u Scriptfiles vozilolist.txt
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
9 / 250 XP
Početnik(1)
2,044
Postovi:
55
Teme:
Pridružio se:Sep. 2013
10. Maj 2018.
#include
#include
new planelist = mS_INVALID_LISTID;
new skinlist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
planelist = LoadModelSelectionMenu("planes.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/plane", true) == 0)
{
ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
return 1;
}
if(strcmp(cmdtext, "/changeskin", true) == 0)
{
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
return 1;
}
return 0;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == planelist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Plane Spawned");
new Float:pos; GetPlayerPos(playerid, pos, pos, pos);
CreateVehicle(modelid, pos + 2.5, pos, pos + 2.5, 0.0, random(128), random(128), -1);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled plane selection");
return 1;
}
if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}
return 1;
}Eo example sa official samp foruma.
planelist = LoadModelSelectionMenu("planes.txt");Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
290
Postovi:
30
Teme:
Pridružio se:Mar. 2018
10. Maj 2018.
.кÑундер wrote on May 10, 2018, 6:07 pm:
#include
#include
new planelist = mS_INVALID_LISTID;
new skinlist = mS_INVALID_LISTID;
public OnFilterScriptInit()
{
planelist = LoadModelSelectionMenu("planes.txt");
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/plane", true) == 0)
{
ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
return 1;
}
if(strcmp(cmdtext, "/changeskin", true) == 0)
{
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
return 1;
}
return 0;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == planelist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Plane Spawned");
new Float:pos; GetPlayerPos(playerid, pos, pos, pos);
CreateVehicle(modelid, pos + 2.5, pos, pos + 2.5, 0.0, random(128), random(128), -1);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled plane selection");
return 1;
}
if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}
return 1;
}Eo example sa official samp foruma.
planelist = LoadModelSelectionMenu("planes.txt");Proverio sam onaj .txt fajl 'vozilolist', ima samo ID - 444 @.кÑундер
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
290
Postovi:
30
Teme:
Pridružio se:Mar. 2018
11. Maj 2018.
.кÑундер wrote on May 10, 2018, 9:44 pm:
Dal si napravio stavio LoadModelSelectionMenu u OnGameModeInit?
@.кÑундер Jesam,
vozilolist = LoadModelSelectionMenu("vozila.txt");Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
