Započeo GLADIATOR
•6. Avg. 2012.[Pomoc] Lociraj
680
pregleda
5
postova
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
52
Postovi:
10
Teme:
Pridružio se:Jul 2012
6. Avg. 2012.
Skripta koju koristim:GTARP
Poblem: Pre malo pre dao mi Lik kad pisem /avtomobil i da sam u avto da zaklucim ja zaklucim al poske kako da udzem u njemu jel moze neko da mi kaze kod kako da uradim SAMO gazda da moze da ulazi kad Je zakljuceno hvala / i drugo imam ono Lociraj Auto da ga pronadzem gde je Imam jedan kod al kod mene max 3 avta a ovaj za 1 auto + ima 2 errora ako moze neko da sredi tih errora i Da mi uradi Kad Pritisnem na Lociraj da mi izbaci opet Dialog i da ti kaze da biram koe auto ocem 1 2 ili 3 Hvala od sve srca ako moze samo pobrzo odgovor :S
Dio skripte:OVO JE ZA LOKACIJU
OVO Je za da ZAKLUCIS
Slike:/
Poblem: Pre malo pre dao mi Lik kad pisem /avtomobil i da sam u avto da zaklucim ja zaklucim al poske kako da udzem u njemu jel moze neko da mi kaze kod kako da uradim SAMO gazda da moze da ulazi kad Je zakljuceno hvala / i drugo imam ono Lociraj Auto da ga pronadzem gde je Imam jedan kod al kod mene max 3 avta a ovaj za 1 auto + ima 2 errora ako moze neko da sredi tih errora i Da mi uradi Kad Pritisnem na Lociraj da mi izbaci opet Dialog i da ti kaze da biram koe auto ocem 1 2 ili 3 Hvala od sve srca ako moze samo pobrzo odgovor :S
Dio skripte:OVO JE ZA LOKACIJU
Quote
if(IsPlayerConnected(playerid))
{
if(gPlayerHasCar == 1)
{
//new Float:cLocationx, Float:cLocationy, Float:cLocationz, Float:cAngle;
GetVehiclePos(CarInfo,cLocationx,cLocationy,cLocationz,cAngle);
SetPlayerCheckpoint(playerid, cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Checkpoint = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "{37F906}INFO:{FFFFFF}Odete do crveniot marker!");
}
else
{
SendClientMessage(playerid, 0xAFAFAFAA, "{37F906}INFO:{FFFFFF}Vie ne poseduvate Avtomobil.");
}
}
{
if(gPlayerHasCar == 1)
{
//new Float:cLocationx, Float:cLocationy, Float:cLocationz, Float:cAngle;
GetVehiclePos(CarInfo,cLocationx,cLocationy,cLocationz,cAngle);
SetPlayerCheckpoint(playerid, cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Checkpoint = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "{37F906}INFO:{FFFFFF}Odete do crveniot marker!");
}
else
{
SendClientMessage(playerid, 0xAFAFAFAA, "{37F906}INFO:{FFFFFF}Vie ne poseduvate Avtomobil.");
}
}
OVO Je za da ZAKLUCIS
Quote
new keycar;
keycar = PlayerInfo;
keycar = PlayerInfo;
keycar = PlayerInfo;
new vehicle = GetPlayerVehicleID(playerid);
if(listitem == 0)
{
if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
}
if(listitem == 1)
{
if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{37F906}INFO:{FFFFFF} Nemate avto.");
return 1;
}
}
keycar = PlayerInfo;
keycar = PlayerInfo;
keycar = PlayerInfo;
new vehicle = GetPlayerVehicleID(playerid);
if(listitem == 0)
{
if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
}
if(listitem == 1)
{
if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{37F906}INFO:{FFFFFF} Nemate avto.");
return 1;
}
}
Slike:/
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
360
Postovi:
40
Teme:
Pridružio se:Mar. 2011
7. Avg. 2012.
Capetroon. wrote on August 6, 2012, 11:52 pm:
Kad sam vidjeo "avta" prestao sam da Äitam. ☹️
a ja cim sam vidio tvoj post predpostavio sam da moram prijavit moderatoru ... koji q tebe briga kako lik pise, nije tvoja stvar sto je lik iz makedonije i sto pise avta ,ako si voljan pomozi ako ne odje*i -.-'
@T : evo ti ovako stavi za lociranje trebalo bi radit
if(IsPlayerConnected(playerid))
{
if(gPlayerHasCar == 1)
{
ShowPlayerDialog(playerid,122333,DIALOG_STYLE_LIST,"Odaberite vozilo koje zelite locirati","Vozilo 1\nVozilo 2\nVozilo 3","Uredu","Odustani");
}
else
{
SendClientMessage(playerid, 0xAFAFAFAA, "{37F906}INFO:{FFFFFF}Vie ne poseduvate Avtomobil.");
}
}
u ondialogresponse
if(dialogid == 122333)
{
new keycar;
keycar = PlayerInfo;
keycar = PlayerInfo;
keycar = PlayerInfo;
new vehicle = GetPlayerVehicleID(playerid);
new Float:cLocationx, Float:cLocationy, Float:cLocationz, Float:cAngle;
if(listitem == 0)
{
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
SetPlayerCheckpoint(playerid, cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Checkpoint = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "{37F906}INFO:{FFFFFF}Odete do crveniot marker!");
}
if(listitem == 1)
{
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
SetPlayerCheckpoint(playerid, cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Checkpoint = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "{37F906}INFO:{FFFFFF}Odete do crveniot marker!");
}
if(listitem == 2)
{
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
SetPlayerCheckpoint(playerid, cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Checkpoint = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "{37F906}INFO:{FFFFFF}Odete do crveniot marker!");
}
}
pokusaj ovako za zakljucavanje
new keycar;
keycar = PlayerInfo;
keycar = PlayerInfo;
keycar = PlayerInfo;
new vehicle = GetPlayerVehicleID(playerid);
if(listitem == 0)
{
if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,0);
}
}
format(string, sizeof(string), "~b~Otkljuceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 0;
OnPropUpdate();
}
}
}
if(listitem == 1)
{
if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else if(keycar == vehicle)
{
if(CarInfo[keycar] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo != keycar) SetVehicleParamsForPlayer(keycar,i,0,1);
}
}
format(string, sizeof(string), "~r~Zakluceno");
GameTextForPlayer(playerid, string, 4000, 3);
CarInfo[keycar] = 1;
OnPropUpdate();
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "{37F906}INFO:{FFFFFF} Nemate avto.");
return 1;
}
}
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
52
Postovi:
10
Teme:
Pridružio se:Jul 2012
7. Avg. 2012.
Capetroon. wrote on August 6, 2012, 11:52 pm:
Kad sam vidjeo "avta" prestao sam da Äitam. ☹️
VIdecces na moderatora 😄
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
Na svi ove 3 mi iskoci ovaj error 035: argument type mismatch (argument 2)
//
a ovo za zaklucanje nije ness dobro i ja sam vlasnik na avto opet nemogu da udzem Hvala brate na podrsku <3
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
360
Postovi:
40
Teme:
Pridružio se:Mar. 2011
7. Avg. 2012.
jao izvini ja sam samo prekopirao to odozgo i malo izmixao xD
obrisi cAngle iz tog
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
znaci ovako stavis na svakom
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz); i naravno pazi na keycar[ broj ]
obrisi cAngle iz tog
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
znaci ovako stavis na svakom
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz); i naravno pazi na keycar[ broj ]
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
52
Postovi:
10
Teme:
Pridružio se:Jul 2012
7. Avg. 2012.
Phat_Jo wrote on August 7, 2012, 2:08 am:
jao izvini ja sam samo prekopirao to odozgo i malo izmixao xD
obrisi cAngle iz tog
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
znaci ovako stavis na svakom
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz); i naravno pazi na keycar[ broj ]
obrisi cAngle iz tog
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz,cAngle);
znaci ovako stavis na svakom
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz); i naravno pazi na keycar[ broj ]
Brate opet imam Isti Error evo gi linije na koi imam na ovu GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz);
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
Quote
GetVehiclePos(keycar,cLocationx,cLocationy,cLocationz);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
SetPlayerCheckpoint(playerid,cLocationx,cLocationy,cLocationz,cAngle, 10.0);
a ni za zaklucavanje ne radi :S to Probacu od neki Sistem da izvadim :S
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava