[POMOC] Errori

Započeo MarQueZ, Decembar 21, 2011, 17:36:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: CLRP
Detaljan opis problema: Radio sam stanove, ali sam kopirao od kuce, tj. sve sto je bilo npr. enum hInfo, ja sam napravio enum sInfo, i umjesto HouseInfo, sam stavio StanInfo i sve umjesto House sam stavio Stan i izbacuje mi ove errore;
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(2791) : warning 201: redefinition of constant/macro (symbol "sInfo")
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4037) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4070) : error 017: undefined symbol "GivePlayerCash"
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4100) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4101) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4125) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4338) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4350) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4354) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4366) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4370) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4374) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4378) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4382) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4386) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4390) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4394) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4398) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4402) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4414) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4418) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4422) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4426) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4430) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4442) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4446) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Kristijan\Desktop\Classic Life RolePlay\gamemodes\RSRP.pwn(4450) : error 004: function "PlayerToPoint" is not implemented

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


26 Errors.

Dio skripte:

Linija 2791:

#define MAX_STANOVA 1
enum sInfo // OVO je linija 2791
{
Float:sEntrancex,
Float:sEntrancey,
Float:sEntrancez,
Float:sExitx,
Float:sExity,
Float:sExitz,
sOwner[MAX_PLAYER_NAME],
sDiscription[MAX_PLAYER_NAME],
sValue,
sInt,
sLock,
sOwned,
sRooms,
sRent,
sRentabil,
sTaking,
sDate,
sLevel,
sWorld
};
new StanInfo[MAX_STANOVA][sInfo];
new StanEntered[MAX_PLAYERS];


Linija 4037:

public ExtortionBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(BizzInfo[bizid][bExtortion],string, true ) == 0 )
{
    return 0;
}
foreach (Player, i)
{
new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
{
    new value = money / 100;
    value = value * 10;
    GivePlayerCash(i, value);
    BizzInfo[bizid][bTill] -= value;
} // ovo je linija 4037
}
return 1;
}


Linija 4070:

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
    return 0;
}
foreach (Player, i)
{
        new name[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s", name);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
    new value = money / 100;
    value = value * 10;
    GivePlayerCash(i, value);
    SBizzInfo[bizid][sbTill] -= value;
} // ovo je linija 4070
}
return 1;
}


Linija 4100 i 4101:

public StartPaintball()
{
PaintballRound = 1;
StartingPaintballRound = 0;
PaintballWinner = 999;
PaintballWinnerKills = 0;
foreach (Player, i)
{
        if(PlayerPaintballing[i] != 0)
        {
            SafeResetPlayerWeapons(i);
            SafeGivePlayerWeapon(i, 29, 999);
            TogglePlayerControllable(i, 1); // ovo je linija 4100
            SendClientMessage(i, COLOR_YELLOW, "Paintball Mech je poceo, ostalo je jos 4 minuta."); // ovo je linija 4101
            PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
        }
}
SetTimer("PaintballEnded", 240000, 0);
return 1;
}


Linija 4125:

public PaintballEnded()
{
new string[256];
new name[MAX_PLAYER_NAME];
foreach (Player, i)
{
        if(PlayerPaintballing[i] != 0)
        {
            if(IsPlayerConnected(PaintballWinner))
            {
                GetPlayerName(PaintballWinner, name, sizeof(name));
                format(string,sizeof(string), "** %s je osvojio mech sa %d ubistava **",name,PaintballWinnerKills);
                SendClientMessage(i, COLOR_WHITE, string);
            }
            SafeResetPlayerWeapons(i);
            PlayerPaintballing[i] = 0;
            SetPlayerPos(i, SBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]); // ovo je linija 4125
        }
}
AnnouncedPaintballRound = 0;
    PaintballRound = 0;
return 1;
}


Linija 4338:

public IsAtCarrental(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(30.0,playerid,1696.5543,-1053.4685,23.9063))
{
return 1; // to je linija 4338
}
}
return 0;
}


Linija 4350 i 4354:

public IsAtClothShop(playerid)
{
    if(IsPlayerConnected(playerid))
{
        if(PlayerToPoint(25.0,playerid,20.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
    return 1; // linija 4350
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
    return 1; // linija 4354
}
}
return 0;
}


Linija 4366, 4370, 4374, 4378, 4382, 4386, 4390, 4394, 4398 i 4402:

public IsAtGasStation(playerid)
{
    if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
    return 1; // ovo je linija 4366
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
    return 1; // ovo je linija 4370
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
    return 1; // ovo je linija 4374
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
    return 1; // ovo je linija 4378
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
    return 1; // ovo je linija 4382
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
    return 1; // ovo je linija 4386
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
    return 1;// ovo je linija 4390
}
else if(PlayerToPoint(8.0,playerid,656.4265,-559.8610,16.5015) || PlayerToPoint(6.0,playerid,656.3797,-570.4138,16.5015))
{//Dillimore
    return 1; // ovo je linija 4394
}
else if(PlayerToPoint(8.0,playerid,125.2434463501, -1935.9764404297, 2.6310691833496) || PlayerToPoint(8.0,playerid,133.91174316406, -1941.7890625, 2.6310691833496))
{//Pumpa za Helice
    return 1; // ovo je linija 4398
}
else if(PlayerToPoint(8.0,playerid,1004.1514892578, -936.96557617188, 47.211837768555))
{//Pumpa za Helice
    return 1; // ovo je linija 4402
}
}
return 0;
}


Linija 4414, 4418, 4422, 4426, 4430:

public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
    return 1; // ovo je linija 4402
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel
    return 1; // ovo je linija 4418
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1; // ovo je linija 4422
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
{//Fishplace at the bigwheel
    return 1; // ovo je linija 4426
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
{//Fishplace at the bigwheel
    return 1; // ovo je linija 4430
}
}
return 0;
}


Linija 4442, 4446, 4450:

public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
    {//Cluckin Bell
        return 1; // ovo je linija 4442
    }
    else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershot
    return 1; // ovo je linija 4446
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
{//Well Stacked Pizza
    return 1; // ovo je linija 4450
}
}
return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): /
P.S. : Sve u vezi stanova sam stavljao ispod Kuce, ne SBizz-a !
Mike Marquez | House of Rave is Trippy Place ! |

Sta je ovo omg :D
UPDATE MEXICO GENIUS

To je pokusaj radnje stanova, HAHAH

Hocu napraviti da mogu posebno kupiti kucu i stan, znaci da ima /kupikucu i /kupistan da oboje mogu imati u isto vrijeme :) a neznam kako da to napravim :S
Mike Marquez | House of Rave is Trippy Place ! |

Citat: ||Will Rosee|| poslato Decembar 21, 2011, 19:42:53 POSLE PODNE
Sta je ovo omg :D
omg svakakvih ima ovdje boze...
negde si { } zaboravio dodat sta si zadnje radio ?  ?

kopirao sam cijeli sistem od kuce i editao u stan :S
Mike Marquez | House of Rave is Trippy Place ! |

Negdje zagrada fali dzaba sto si copy izostavio si je :S
Respect to:
[BD]Gagi

Citat: ναηιâ,,"â,,"α.αмχâ—,, â,,–¹ poslato Decembar 21, 2011, 20:20:31 POSLE PODNE
na vrh

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


na kraj

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);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))){
return 1;}}
return 0;
}


Ne preporučavam da ovo koristite! Jako je sporo bolje koristite macro za to isto je ko IsPlayerIn... ako već baÅ¡ hoćete koristiti PTP neznam Å¡ta vam se to toliko sviÄ'a , na vrh moda samo stavite ovo

#define PlayerToPoint(%2,%1,%3,%4,%5) IsPlayerInRangeOfPoint(%1,%2,%3,%4,%5)
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Da li netko mozda ima neki TUT za radjenje tih posebnih stanova ?
Mike Marquez | House of Rave is Trippy Place ! |