Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [MX] MineCraft Kruno1407 SoaD Macaskill.cpp poslato Jun 12, 2010, 19:01:04 POSLE PODNE

Naslov: Zasto fatal error..
Poruka od: [MX] MineCraft Kruno1407 SoaD Macaskill.cpp poslato Jun 12, 2010, 19:01:04 POSLE PODNE
sada sam sve preveo i izbaci mi ovo

C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(1974) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(1999) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2070) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2074) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2086) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2090) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2094) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2098) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2102) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2106) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2110) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2122) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2126) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2130) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2134) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2138) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2150) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2154) : error 004: function "PlayerToPoint" is not implemented

pomozite kako znate i umijete molim vas!!
Naslov: Odg: Zasto fatal error..
Poruka od: [CH] Dedica poslato Jun 12, 2010, 19:03:10 POSLE PODNE
ides CTRL + G i jedna po jedan broj sto ti je u zagradi i popravljas koordinate nesto nisi dobro unio kreni ispocetka
Naslov: Odg: Zasto fatal error..
Poruka od: [MX] MineCraft Kruno1407 SoaD Macaskill.cpp poslato Jun 12, 2010, 19:05:01 POSLE PODNE
bilo bi to dobro da skripta nema 36916 redova..
Naslov: Odg: Zasto fatal error..
Poruka od: Marko92 poslato Jun 12, 2010, 19:26:08 POSLE PODNE
ovo dodaj u forwarde

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward SetPlayerToTeamColor(playerid);

a ovo na dno skripte

public SetPlayerToTeamColor(playerid)
{
   if(IsPlayerConnected(playerid))
   {
       SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
       /* if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
        SetPlayerColor(playerid,COLOR_DBLUE);
        if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
        SetPlayerColor(playerid,COLOR_BLACK);
        if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 1)
        SetPlayerColor(playerid,cop_color);
        if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
        SetPlayerColor(playerid,COLOR_DARKNICERED);
        if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
        SetPlayerColor(playerid,COLOR_GROVE); */
   }
}


i ovo na dno skripte takodjer


public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
   {
      new Float:oldposx, Float:oldposy, Float:oldposz;
      new Float:tempposx, Float:tempposy, Float:tempposz;
      GetPlayerPos(playerid, oldposx, oldposy, oldposz);
      tempposx = (oldposx -x);
      tempposy = (oldposy -y);
      tempposz = (oldposz -z);
      //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
      if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
      {
         return 1;
      }
   }
   return 0;
}



i sad mora da radi. 100% provjereno da radi. garantiram
Naslov: Odg: Zasto fatal error..
Poruka od: Marko92 poslato Jun 12, 2010, 22:53:33 POSLE PODNE
odakle to znas?!
Naslov: Odg: Zasto fatal error..
Poruka od: [MX] MineCraft Kruno1407 SoaD Macaskill.cpp poslato Jun 12, 2010, 23:35:27 POSLE PODNE
gdje to treba napisat?
Naslov: Odg: Zasto fatal error..
Poruka od: SlicK poslato Jun 12, 2010, 23:52:32 POSLE PODNE
Ma nije uoce u tomeee...negdje si nasto krivo stavio ili {,}  :D
Naslov: Odg: Zasto fatal error..
Poruka od: [MX] MineCraft Kruno1407 SoaD Macaskill.cpp poslato Jun 12, 2010, 23:55:44 POSLE PODNE
sad treba trazit gdje..;D
Naslov: Odg: Zasto fatal error..
Poruka od: SlicK poslato Jun 13, 2010, 01:10:58 PRE PODNE
Citat: Kruno1407 poslato Jun 12, 2010, 23:55:44 POSLE PODNE
sad treba trazit gdje..;D

Pogledaj sta si zadnje ubaciovao ili radio itd...Negdje si nesto krivo napravio!