[POMOC]Kapije

Započeo belmiin, April 03, 2012, 18:19:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:LA-RP
Detaljan opis problema:Kapije mi sve izvrcu probo sam da promjenim iz MoveDynamicObject u MoveObject i tako sa Create i ubacio sam najnoviji streamer koji radi izvrsno na CLRP na njemu sam napravio ograde ali ovdje i dalje se uvrcu
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
armygate1 = CreateObject(969, 2720.3772,-2409.7523,12.6,0, 0.0000, 90);
armygate2 = CreateObject(969, 2720.3772,-2508.3069,12.6,0, 0.0000, 90);
armygate3 = CreateObject(980, 2774.4670,-2494.5842,14.2665,0, 0.0000, 90);

if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 5)
{
if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2409.7523,12.6))
{
if(armyg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija br.1 je otvorena i bice zatvorena za 7 sekundi");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara vojnu kapiju br.1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg = 1;
}
else if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2508.3069,12.6))
{
if(armyg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate2,2720.3772, -2499.8069, 12.6, 3.5);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija br.2 je otvorena i bice zatvorena za 7 sekundi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara vojnu kapiju br.2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg2 = 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 10, 2773.2056,-2494.8267,13.6681))
{
if(PlayerInfo[playerid][pRank] >= 5)
{
if(armyg3 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate3, 2774.4670,-2494.5842,8.2665, 2.5);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija je otvorena, bice zatvorena za 7 sekndi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara garazu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg3 = 1;
}

Ovako..
MoveObject(armygate1,X, Y, Z, Brzina Rotacije);
Eh sad da bi popravio to sto se rotiraju moras kopirati RotX,RotY i RotZ na kraj koda "MoveObject" tj.
CreateObject(969, X,Y,Z,0<---RotX, 0.0000<------RotY, 90<---RotZ); Ta zadnja tri koda samo kopiraj i stavi ovako
MoveObject(armygate1,X, Y, Z, Brzina Rotacije,0,0.00,90.0); i radit ce ti..Nadam se da si skontao..[/b]

zar ti nije lakse bilo cporiat ovo moje gore i samo izmjenit kako treba lakse mi je za skontat mozda nisam lijepo skonto ali kad ovako ovo uradim izbaci mi 11 warnings

Ovako imas definisanu kapiju npr LCNGate.. Nadjes gdje je LCNGate = CreateObject... i kopiras one tri zadnje koord. i samo dodas na MoveObject(LCNGate,X,Y,Z,Brz,   <--- i tu ih dodas ! ii daj mi te warninge..


MoveObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5,0.00,0.00,90.00); Ovako bi ti ispalo.
Poslednja Izmena: April 03, 2012, 19:19:16 POSLE PODNE od [Pawno | MTA] Muhamed

de brate oces ti mene zezat ili mi pomoci dacu ti varninge evo ti ali de uzmi ovo gore moje i prepravi kako treba lakse mi je skontat sta ti fali oznacit ovo gore copy past u novi komentar i prepravis kako treba
Poslednja Izmena: April 03, 2012, 19:23:12 POSLE PODNE od belmiin

if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 5)
{
if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2409.7523,12.6))
{
if(armyg == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate1,2720.3772, -2401.2523, 12.6, 3.5,0.00,0.00,90.00);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija br.1 je otvorena i bice zatvorena za 7 sekundi");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara vojnu kapiju br.1.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg = 1;
}
else if (IsPlayerInRangeOfPoint(playerid, 15,2720.3772,-2508.3069,12.6))
{
if(armyg2 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate2,2720.3772, -2499.8069, 12.6, 3.5,0.00,0.00,90.00);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija br.2 je otvorena i bice zatvorena za 7 sekundi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara vojnu kapiju br.2.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg2 = 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 10, 2773.2056,-2494.8267,13.6681))
{
if(PlayerInfo[playerid][pRank] >= 5)
{
if(armyg3 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Kapija je vec otvorena"); return 1; }
MoveObject(armygate3, 2774.4670,-2494.5842,8.2665, 2.5,0.00,0.00,90.00);
SetTimer("GateClose2", 7000, 0);
SendClientMessage(playerid, COLOR_BLUE,"Kapija je otvorena, bice zatvorena za 7 sekndi.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s uzima svoj daljinski i otvara garazu.", sendername);
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
armyg3 = 1;
}

evo ti warning sad ih ima vise
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41527) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41527) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41527) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41538) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41538) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41538) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41551) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41551) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(41551) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87444) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87444) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87444) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87455) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87455) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87455) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87468) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87468) : warning 202: number of arguments does not match definition
C:\Users\Jumper\Downloads\BCRP\BCRP\gamemodes\BCRP.pwn(87468) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


18 Warnings.

i ne radi ti to sad on meni lijepo otvori kapiju ali kad je zatvara izvrne je

Zatvara ruzno zato sto nisi doda kada zatvara one zadnje tri koord. RotX RotY i RotZ a ti warninzi ti nisu na ovom kodu sto sam ti dao...To ti je negdje drugo u skripti.

Imal ko drugi da mi ovo objasni posto ti to sto si reko nisam umetno jesam umetno sam sve ali opet nece.