[POMOC] eRRORI

Započeo Snich, Februar 05, 2011, 00:09:00 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Snich

OVO SAM ODRADIO:


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/carina1", cmdtext, true, 10) == 0)
   {
   if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] == 0) // Samo za igrace te organizacije(organizacija broj 1)
   {
   if (PlayerToPoint(15, playerid,1618.9377441406, 128.63641357422, 36.357173919678))
      {
           SetObjectPos(glavna7, 1618.9377441406, 128.63641357422, 36.357173919678);
         SetDynamicObjectRot(glavna7, 0, 0, 348); //Kordinati OTVORENE kapije
           SetTimer("zatvori7", 7000,false);
           SafeGivePlayerMoney(playerid, - 10);
           SendClientMessage(playerid, COLOR_PURPLE,"Platili ste prolaz od 20 dolara.");
           SendClientMessage(playerid, COLOR_BLUE, "Rampa je otvorena, zatvorit ce se za 7 sekundi!");
         }
      else
      {
         return SendClientMessage(playerid, COLOR_LIGHTRED, "Niste blizu carine.");
      }
   }

if (strcmp("/carina", cmdtext, true, 10) == 0)
   {
   if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] == 0) // Samo za igrace te organizacije(organizacija broj 1)
   {
   if (PlayerToPoint(15, playerid,1615.1184082031, 129.544921875, 36.400566101074))
      {
           SetObjectPos(glavna6, 1615.1184082031, 129.544921875, 36.400566101074);
         SetDynamicObjectRot(glavna6, 0, 0, 166.99768066406); //Kordinati OTVORENE kapije
           SetTimer("zatvori6", 7000,false);
            SafeGivePlayerMoney(playerid, - 10);
            SendClientMessage(playerid, COLOR_PURPLE,"Platili ste prolaz od 20 dolara.");
           SendClientMessage(playerid, COLOR_BLUE, "Rampa je otvorena, zatvorit ce se za 7 sekundi!");
       }
      else
      {
         return SendClientMessage(playerid, COLOR_LIGHTRED, "Niste blizu carine.");
      }
   }


I EVO ERRORA, NIKAKO DA SE RJESIM:


C:\Documents and Settings\Korisnik\Desktop\server\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2060) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2086) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2116) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2117) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2141) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2390) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2394) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2405) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2417) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2421) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2433) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2437) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2441) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2445) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2449) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2453) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2457) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2461) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2465) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2469) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2481) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2485) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2489) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2493) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2497) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Korisnik\Desktop\server\gamemodes\FactionGame.pwn(2509) : error 004: function "PlayerToPoint" is not implemented

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


26 Errors.



Ae pomoozite, ako neko zna

Nemas { ili }, tj. pogrijesio si u brojenju tih.
Aequam memento rebus in arduis servare mentem.

Broj otvorenih { i zatvorenih } zagrada mora biti jednak.Zaboravi osi negdje zatvorit zagradu kao sto je Luksa rekao.

Najbolje je da krenes ispocetka sve ;)
For ya...


I'd catch a grenade for ya
Throw my hand on a blade for ya
I'd jump in front of a train for ya
You know I'd do anything for ya


BestOne.exe | Mapper | n00b Skripter | Bruno Mars Fan | Balkan SA:MP <3 | Fifa 11 <3


For ya...



Citat: BestOne.exe poslato Februar 05, 2011, 10:21:36 PRE PODNE
Najbolje je da krenes ispocetka sve ;)
Koja glupost Boze dragi.Zasto da krece ispocetka kad treba samo prebrojat otvorene i zatvorene zagrede i problem ce biti rijesen ?

Citat: mafica .pwn poslato Februar 05, 2011, 10:32:19 PRE PODNE
Citat: BestOne.exe poslato Februar 05, 2011, 10:21:36 PRE PODNE
Najbolje je da krenes ispocetka sve ;)
Koja [cenzura]ost Boze dragi.Zasto da krece ispocetka kad treba samo prebrojat otvorene i zatvorene zagrede i problem ce biti rijesen ?
Eto, ova komanda se doslovno napravi za 15-18min bez tuta i 2 min s tutom, treba samo promjenit koordinate i to je to... A brojanje... Toliko sam puta ja zaboravio zagrade i nisam ih nikad nasao
For ya...


I'd catch a grenade for ya
Throw my hand on a blade for ya
I'd jump in front of a train for ya
You know I'd do anything for ya


BestOne.exe | Mapper | n00b Skripter | Bruno Mars Fan | Balkan SA:MP <3 | Fifa 11 <3


For ya...



Izvoli... :)

if (strcmp("/carina1", cmdtext, true, 8) == 0)
{
if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] == 0)
{
if (PlayerToPoint(15, playerid,1618.9377441406, 128.63641357422, 36.357173919678)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Niste blizu carine.");
{
SetObjectPos(glavna7, 1618.9377441406, 128.63641357422, 36.357173919678);
SetDynamicObjectRot(glavna7, 0, 0, 348);
SetTimer("zatvori7", 7000,false);
SafeGivePlayerMoney(playerid, - 10);
SendClientMessage(playerid, COLOR_PURPLE,"Platili ste prolaz od 20 dolara.");
SendClientMessage(playerid, COLOR_BLUE, "Rampa je otvorena, zatvorit ce se za 7 sekundi!");
}
}
return 1;
}


if (strcmp("/carina", cmdtext, true, 7) == 0)
{
if(PlayerInfo[playerid][pMember] >= 0 || PlayerInfo[playerid][pLeader] == 0)
{
if (PlayerToPoint(15, playerid,1615.1184082031, 129.544921875, 36.400566101074)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Niste blizu carine.");
{
SetObjectPos(glavna6, 1615.1184082031, 129.544921875, 36.400566101074);
SetDynamicObjectRot(glavna6, 0, 0, 166.99768066406);
SetTimer("zatvori6", 7000,false);
SafeGivePlayerMoney(playerid, - 10);
SendClientMessage(playerid, COLOR_PURPLE,"Platili ste prolaz od 20 dolara.");
SendClientMessage(playerid, COLOR_BLUE, "Rampa je otvorena, zatvorit ce se za 7 sekundi!");
}
}
return 1;
}


PS: Obrati paznju na ovo

if (strcmp("/carina", cmdtext, true, 7) == 0) // Tu gde sam ja stavio 7 ti si tu stavio 10 , komanda nema 10 znakova ima 7 .. ;)

@ Snich_Wolf, pogriješio si mjesto postanja, a već su ti i pomogli.

Lock.
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265