[Pomoc]Auti org

Započeo Chuck:), Septembar 24, 2011, 12:34:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta:gf
Opis problema: Kako da napravim da kad neki igrac koji nije clan neke org da kad stisne enter/f da mu NE UDE u auto nego da mu odmah pise "Zakljucano" ?
Slika:/
Hvala :)

Lemi_Zero

Evo izvoli ovo ubacis samo umesto tog tvog...

else if(IsACopCar(vehicleid))
{
    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
}
    else
{
    RemovePlayerFromVehicle(playerid);
    new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
    NOPCheck(playerid);
    GameTextForPlayer(playerid,"~r~Zakljucano",11000,3);
}

Nece mi zbog "NOPCheck"

Kaze da nije definirano,kako da definiram to?
Poslednja Izmena: Septembar 24, 2011, 13:02:55 POSLE PODNE od pHon

Lemi_Zero

Neznam onda probaj to da obrises ili tako nesto posto je kod mene drugi mod ja koristim Next Generation.... probaj obrisati to

Kad obrisem onda kad stisnem enter/f ude mi u auto,pokaze zakljucano i izbaci me..

Lemi_Zero

Probaj ovako

else if(IsACopCar(vehicleid))
{
   if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
}
   else
{
   RemovePlayerFromVehicle(playerid);
   new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
       Check(playerid);
   GameTextForPlayer(playerid,"~r~Zakljucano",11000,3);
}
Poslednja Izmena: Septembar 24, 2011, 19:09:32 POSLE PODNE od Lemi_Zero


u onplayerentervehicle

if(vehicleid == ID_Auta || vehicleid == ID_Auta/*Ti dodaj još ako treba*/)\
if(PlayerInfo[playerid][pLeader] == ID_Org || PlayerInfo[playerid][pMember] == ID_Org)\
TogglePlayerControllable(playerid,0), TogglePlayerControllable(playerid,1);
Poslednja Izmena: Septembar 25, 2011, 11:07:44 PRE PODNE od BloodMaster

Citat: BloodMaster poslato Septembar 25, 2011, 11:06:40 PRE PODNE
u onplayerentervehicle

if(vehicleid == ID_Auta || vehicleid == ID_Auta/*Ti dodaj još ako treba*/)\
if(PlayerInfo[playerid][pLeader] == ID_Org || PlayerInfo[playerid][pMember] == ID_Org)\
TogglePlayerControllable(playerid,0), TogglePlayerControllable(playerid,1);



C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(5146) : error 029: invalid expression, assumed zero
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(5146) : error 029: invalid expression, assumed zero
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(5146) : warning 215: expression has no effect
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(5146) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(5146) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

5146:
TogglePlayerControllable(playerid,0), TogglePlayerControllable(playerid,1);
Poslednja Izmena: Septembar 25, 2011, 11:59:27 PRE PODNE od pHon

if(vehicleid == ID || vehicleid == ID)
{
    if(PlayerInfo[playerid][pLeader] != ID || PlayerInfo[playerid][pMember] != ID) return RemovePlayerFromVehicle(playerid);
    return true;
}

Citat: MicroD poslato Septembar 25, 2011, 11:58:00 PRE PODNE
if(vehicleid == ID || vehicleid == ID)
{
    if(PlayerInfo[playerid][pLeader] != ID || PlayerInfo[playerid][pMember] != ID) return RemovePlayerFromVehicle(playerid);
    return true;
}


ne kuzis me..
Onako mi treba,ne znam kako da drugacije objasnim, kao na ch kad zelis uci u neki auto od org (H,tsc,Y itd) da ti pise Zakljucano i da ne mozes uopce uci u auto :)

Citat: pHon poslato Septembar 25, 2011, 12:19:04 POSLE PODNE
Citat: MicroD poslato Septembar 25, 2011, 11:58:00 PRE PODNE
if(vehicleid == ID || vehicleid == ID)
{
   if(PlayerInfo[playerid][pLeader] != ID || PlayerInfo[playerid][pMember] != ID) return RemovePlayerFromVehicle(playerid);
   return true;
}


ne kuzis me..
Onako mi treba,ne znam kako da drugacije objasnim, kao na ch kad zelis uci u neki auto od org (H,tsc,Y itd) da ti pise Zakljucano i da ne mozes uopce uci u auto :)
Ajde napravim ti sad to samo molim te nemoj pominjati servere vamo (usporedjivati). Editovacu za koji minut.
EDIT:
Evo ti jedan simple kod samo neznam koliko ce ti biti koristan ti ga uredi jer je moguce abusati sa istim:


RemovePlayerFromVehicle(playerid);
new Float:X, Float:Y, Float:Z;
GetVehiclePos(vehicleid, X, Y, Z);
SetPlayerPos(playerid, X+2, Y, Z);
GameTextForPlayer(playerid, "Vozilo u vlasnistvu Jaguze" , 3000, 4);
Poslednja Izmena: Septembar 25, 2011, 12:31:27 POSLE PODNE od MicroD

Citat: MicroD poslato Septembar 25, 2011, 12:20:28 POSLE PODNE
Citat: pHon poslato Septembar 25, 2011, 12:19:04 POSLE PODNE
Citat: MicroD poslato Septembar 25, 2011, 11:58:00 PRE PODNE
if(vehicleid == ID || vehicleid == ID)
{
   if(PlayerInfo[playerid][pLeader] != ID || PlayerInfo[playerid][pMember] != ID) return RemovePlayerFromVehicle(playerid);
   return true;
}


ne kuzis me..
Onako mi treba,ne znam kako da drugacije objasnim, kao na ch kad zelis uci u neki auto od org (H,tsc,Y itd) da ti pise Zakljucano i da ne mozes uopce uci u auto :)
Ajde napravim ti sad to samo molim te nemoj pominjati servere vamo (usporedjivati). Editovacu za koji minut.
EDIT:
Evo ti jedan simple kod samo neznam koliko ce ti biti koristan ti ga uredi jer je moguce abusati sa istim:


RemovePlayerFromVehicle(playerid);
new Float:X, Float:Y, Float:Z;
GetVehiclePos(vehicleid, X, Y, Z);
SetPlayerPos(playerid, X+2, Y, Z);
GameTextForPlayer(playerid, "Vozilo u vlasnistvu Jaguze" , 3000, 4);



C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12505) : error 017: undefined symbol "vehicleid"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "Z"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "Y"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "X"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


edit: rijeseni errori.


Ali ude mi u auto i tek onda pise :SS
Ne zelim tak.
Poslednja Izmena: Septembar 25, 2011, 12:43:58 POSLE PODNE od pHon

Citat: pHon poslato Septembar 25, 2011, 12:37:38 POSLE PODNE
Citat: MicroD poslato Septembar 25, 2011, 12:20:28 POSLE PODNE
Citat: pHon poslato Septembar 25, 2011, 12:19:04 POSLE PODNE
Citat: MicroD poslato Septembar 25, 2011, 11:58:00 PRE PODNE
if(vehicleid == ID || vehicleid == ID)
{
   if(PlayerInfo[playerid][pLeader] != ID || PlayerInfo[playerid][pMember] != ID) return RemovePlayerFromVehicle(playerid);
   return true;
}


ne kuzis me..
Onako mi treba,ne znam kako da drugacije objasnim, kao na ch kad zelis uci u neki auto od org (H,tsc,Y itd) da ti pise Zakljucano i da ne mozes uopce uci u auto :)
Ajde napravim ti sad to samo molim te nemoj pominjati servere vamo (usporedjivati). Editovacu za koji minut.
EDIT:
Evo ti jedan simple kod samo neznam koliko ce ti biti koristan ti ga uredi jer je moguce abusati sa istim:


RemovePlayerFromVehicle(playerid);
new Float:X, Float:Y, Float:Z;
GetVehiclePos(vehicleid, X, Y, Z);
SetPlayerPos(playerid, X+2, Y, Z);
GameTextForPlayer(playerid, "Vozilo u vlasnistvu Jaguze" , 3000, 4);



C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\Real Los Santos Life\gamemodes\RLRP.pwn(12504) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12505) : error 017: undefined symbol "vehicleid"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12506) : warning 213: tag mismatch
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "Z"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "Y"
C:\Documents and Settings\PC\Desktop\mod\gamemodes\RLRP.pwn(12504) : warning 203: symbol is never used: "X"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Predpostavljam da si ga samo vrljno negde u modu i sad iskacu svi ti errori/upozorenja.
OnPlayerEnterVehicle:


if(vehicleid == ID || vehicleid == ID)
{
   if(PlayerInfo[playerid][pLeader] == ID || PlayerInfo[playerid][pMember] == ID) return true;
   else
   {
       RemovePlayerFromVehicle(playerid);
       new Float:X, Float:Y, Float:Z;
       GetVehiclePos(vehicleid, X, Y, Z);
       SetPlayerPos(playerid, X+2, Y, Z);
       GameTextForPlayer(playerid, "Vozilo u vlasnistvu Jaguze" , 3000, 4);    
   }
}
Poslednja Izmena: Septembar 25, 2011, 12:43:11 POSLE PODNE od MicroD

ma rijesio sam errore,ali ude mi u auto i onda tek pise :S
Poslednja Izmena: Septembar 25, 2011, 12:45:53 POSLE PODNE od pHon