[Pomoc]Errors

Započeo Schwarz
4. Jan. 2013. Zaključano
512
pregleda
11
postova
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
Skripta koju koristim: Moja iz 0
Detaljan opis problema: Pa radio sam biznis system spored ovaj tut: http://forum.sa-mp.com/showthread.php?t=349466 i baca mi erore neke.
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(340) : error 010: invalid function or declaration
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 028: invalid subscript (not an array or too many subscripts): "InsideBiz"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10875) : fatal error 107: too many error messages on one line

new InsideBiz;//1 eror na 340 liniju.
SetPlayerVirtualWorld(playerid, BusinessInfo);//linija gde mi baca ostale erore
Evo i cela komanda ako moze posluzit
CMD:enter(playerid, params[])
{
    for(new b = 1; b < sizeof(BusinessInfo); b++)//Loops through all the businesses.
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.0, BusinessInfo, BusinessInfo, BusinessInfo))//Checks if player is near the entrance.
        {
            if(BusinessInfo == 1) return SendClientMessage(playerid, COLOR_GREY, "This Business is locked!");//Checks it it is locked/
            SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
            SetPlayerFacingAngle(playerid, BusinessInfo);
            SetPlayerInterior(playerid, BusinessInfo);
            SetPlayerVirtualWorld(playerid, BusinessInfo);
            InsideBiz = b;
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo, BusinessInfo, BusinessInfo) && GetPlayerVirtualWorld(playerid) == BusinessInfo)//Checks if player is in near the exit.
        {
            SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
            SetPlayerFacingAngle(playerid, BusinessInfo);
            SetPlayerInterior(playerid, BusinessInfo);
            SetPlayerVirtualWorld(playerid, BusinessInfo);
            InsideBiz = 0;
            return 1;
        }
    }
    return 1;
}

Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Ramiz
3
Hustler
4. Jan. 2013.
//1 eror na 340 liniju.
SetPlayerVirtualWorld(playerid, BusinessInfo);//linija gde mi baca ostale erore

Ovo iznad zamjeni i stavi ovako
new InsideBiz;
SetPlayerVirtualWorld(playerid, BusinessInfo);

Daj mi tacno liniju 10875
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
SetPlayerVirtualWorld(playerid, BusinessInfo);

Evo ti je bre ako znaes nesto reci ako ne ne spamaj samo
Blaeks_Biofor
5
Forum Don
4. Jan. 2013.
stavi je ovako
new InsideBiz;
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
A ove druge erore kako da resim ??
Blaeks_Biofor
5
Forum Don
4. Jan. 2013.
CMD:enter(playerid, params[])
{
    for(new i = 0; i < sizeof(BusinessInfo); i++)
{
        if(IsPlayerInRangeOfPoint(playerid, 1.0, BusinessInfo, BusinessInfo, BusinessInfo))//Checks if player is near the entrance.
        {
            if(BusinessInfo == 1) return SendClientMessage(playerid, COLOR_GREY, "This Business is locked!");//Checks it it is locked/
            SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
            SetPlayerFacingAngle(playerid, BusinessInfo);
            SetPlayerInterior(playerid, BusinessInfo);
            SetPlayerVirtualWorld(playerid,BusinessInfo);
            InsideBiz = i;
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo, BusinessInfo, BusinessInfo) && GetPlayerVirtualWorld(playerid) == BusinessInfo)//Checks if player is in near the exit.
        {
            SetPlayerPos(playerid, BusinessInfo, BusinessInfo, BusinessInfo);
            SetPlayerFacingAngle(playerid, BusinessInfo);
            SetPlayerInterior(playerid, BusinessInfo);
            SetPlayerVirtualWorld(playerid,BusinessInfo);
            InsideBiz = 0;
            return 1;
        }
    }
    return 1;
}
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
Ok to sam resio sam mi daje ove erore
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : error 017: undefined symbol "gPlayerLoggedIn"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : warning 215: expression has no effect
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : fatal error 107: too many error messages on one line

Na ovu liniju
if(gPlayerLoggedIn == 0) return 1;

Evo i cela cmd ako moze nekako pomoci
CMD:buybiz(playerid, params[])
{
    if(gPlayerLoggedIn == 0) return 1;

    new id = IsPlayerNearBizEnt(playerid);

    if(id == -1 || id == 0) return SendClientMessage(playerid, COLOR_GREY, "You are not near a biz");

    if(BusinessInfo != 0 || BusinessInfo == 0) return SendClientMessage(playerid, COLOR_GREY, "This biz is not for sale.");

    if(PlayerInfo != 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You already own a biz.");

    if(PlayerInfo < BusinessInfo) return SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, you can not afford this biz.");

    PlayerInfo = id;
    PlayerInfo -= BusinessInfo;
    GivePlayerMoney(playerid, -BusinessInfo);

    BusinessInfo = 0;
    BusinessInfo = 1;
    BusinessInfo = RemoveUnderScore(playerid);

    SendClientMessage(playerid, COLOR_YELLOW, "Congratulations on your new biz! Use /bizhelp to get help, or /ask!");
    return 1;
}
Blaeks_Biofor
5
Forum Don
4. Jan. 2013.
stavi ovo na vrh
new gPlayerLoggedIn;
i ovo pod onplayerconnect
gPlayerLoggedIn = 0;
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
Kompajlao sam i sad vidi ovo  😮

C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : error 017: undefined symbol "IsPlayerNearBizEnt"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10899) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10901) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10903) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10904) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10909) : error 017: undefined symbol "RemoveUnderScore"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10916) : error 017: undefined symbol "IsPlayerNearBizEnt"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10917) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10932) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10933) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10937) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10938) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10946) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10947) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10955) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10959) : error 017: undefined symbol "Skin"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(12442) : error 021: symbol already defined: "cmd_enter"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(15298) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(15314) : error 047: array sizes do not match, or destination array is too small

Sad sta da radim ??
Blaeks_Biofor
5
Forum Don
4. Jan. 2013.
Child wrote on January 4, 2013, 1:42 pm:
Kompajlao sam i sad vidi ovo  😮

C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10893) : error 017: undefined symbol "IsPlayerNearBizEnt"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10899) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10901) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10903) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10904) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10909) : error 017: undefined symbol "RemoveUnderScore"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10916) : error 017: undefined symbol "IsPlayerNearBizEnt"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10917) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10932) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10933) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10937) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10938) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10946) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10947) : error 017: undefined symbol "BizID"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10955) : error 017: undefined symbol "Money"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(10959) : error 017: undefined symbol "Skin"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(12442) : error 021: symbol already defined: "cmd_enter"
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(15298) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Mikjo\Desktop\SERVER\Roleplay\gamemodes\rp.pwn(15314) : error 047: array sizes do not match, or destination array is too small

Sad sta da radim ??
ti si iskopirao to iz nekog drugog moda, pa imas errore, uzmi definicije iz istog moda
Mikjo_Ivanovski
5
Kingpin
4. Jan. 2013.
Ma ne radio sam spored ovog tut-a http://forum.sa-mp.com/showthread.php?t=349466

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha