Pomoc hitno mi treba

Započeo Arnel_Bp, Maj 13, 2013, 14:20:22 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Kada uradim nesto na MTA ili map editor ono remvoebuilding gde to ubacujem u pawno i kako posto mi stalno izbacuju erori na OnPlayerConnect(playerid) ako bi mogao neko da mi se javi na skype da mi obijasni/pokaze molim vas

Pa imas ovak

public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 123, 0.0, 0.0, 0.0, 200.0);
    RemoveBuildingForPlayer(playerid, 123, 0.0, 0.0, 0.0, 200.0);
    return 1;
}

I tak stavljas nema sta bacat error

Sad je ovo u redu samo mi nije jasno kako mogu da napravim komande za kapije np. /otvorikapiju i /zatvorikapiju mozeli ko da mi obijasni molim vas veoma mi je potrebno ? Jer je veoma glupo praviti bazu bez komandi ako moze neko da mi opsirnije obijasni imo bi svasta da pitam  :D ako nije problem reci te mi da vas pozovem na skype ako ste dobre volje i ako niste zauzeti molim vas javite mi :)
Poslednja Izmena: Maj 13, 2013, 20:08:42 POSLE PODNE od Arnel_Bp

1.Prvo ovo napravis  to stavis vrhu
new policijakapija;
2.Drugo moras naci u MTA ili Map Editor naci ID kordinate i staviti ovako.....
Ovaj CreateObject mozes staviti i u CreateDynamicObject ili ovo sta sam ja stavio
policijakapija = CreateObject(980, -1059.9030761719, -1650.4421386719, 78.561889648438, 0, 0, 89.343811035156);
3.Sad ide komande /otvorikapiju i /zatvorikapiju
if (strcmp("/otvorikapiju", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 ||PlayerInfo[playerid][pLeader] == 8)
        {
        MoveObject(policijakapija,  -1059.9030761719, -1650.4421386719, 71.369323730469, 2);
        SendClientMessage(playerid, COLOR_GREY, "Otvaras kapiju kod Policije");
                 }       
return 1;
                 }

if (strcmp("/zatvorikapiju", cmdtext, true, 10) == 0)
    {
if(PlayerInfo[playerid][pMember] == 8 ||PlayerInfo[playerid][pLeader] == 8)
        {
        MoveObject(policijakapija, -1059.9030761719, -1650.4421386719, 78.561889648438, 2);
        SendClientMessage(playerid, COLOR_GREY, "Zatvaras kapiju od Policije");
                   }
return 1;
                   }

      

To je jedan Primjer  ;)
Poslednja Izmena: Maj 13, 2013, 20:25:12 POSLE PODNE od [WG:RP]PeMPaCâ„¢

Mozes li ti da mi to opsirnije obijasnis ili na TW posto mi stalno izbacuje eror evo vidi
C:\Users\AKA\Desktop\gate.pwn(95) : error 017: undefined symbol "COLOR_GREY"
C:\Users\AKA\Desktop\gate.pwn(100) : error 017: undefined symbol "MoveObjectgate"
C:\Users\AKA\Desktop\gate.pwn(100) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(100) : warning 215: expression has no effect
C:\Users\AKA\Desktop\gate.pwn(101) : error 017: undefined symbol "COLOR_GREY"
C:\Users\AKA\Desktop\gate.pwn(103) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(103) : warning 217: loose indentation
C:\Users\AKA\Desktop\gate.pwn(106) : warning 217: loose indentation
C:\Users\AKA\Desktop\gate.pwn(106) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(106) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\AKA\Desktop\gate.pwn(111) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(111) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(111) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\AKA\Desktop\gate.pwn(116) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(116) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(116) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\AKA\Desktop\gate.pwn(121) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(121) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(121) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\AKA\Desktop\gate.pwn(126) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(126) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(126) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\AKA\Desktop\gate.pwn(131) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(131) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(131) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\AKA\Desktop\gate.pwn(136) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(136) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(136) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\AKA\Desktop\gate.pwn(141) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(141) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(141) : error 004: function "OnRconCommand" is not implemented
C:\Users\AKA\Desktop\gate.pwn(146) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(146) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(146) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\AKA\Desktop\gate.pwn(151) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(151) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(151) : error 004: function "OnObjectMoved" is not implemented
C:\Users\AKA\Desktop\gate.pwn(156) : warning 225: unreachable code
C:\Users\AKA\Desktop\gate.pwn(156) : error 029: invalid expression, assumed zero
C:\Users\AKA\Desktop\gate.pwn(156) : error 004: function "OnPlayerObjectMoved" is not implemented

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


26 Errors.
Poslednja Izmena: Maj 14, 2013, 13:11:58 POSLE PODNE od Arnel_Bp