[POMOC] Errori

Započeo MarQueZ, Januar 07, 2011, 13:12:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Compilao sam mod i nasao mi je ove errore:

D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(18305) : error 017: undefined symbol "SetPlayerHoldingObject"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(18312) : error 017: undefined symbol "StopPlayerHoldingObject"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Evo cijela komanda:

if(strcmp(cmd, "/aktovka", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pBCase] == 1)
{
if(BCase[playerid] == 0)
{
                    SetPlayerHoldingObject(playerid, 1210, 6,0.3,0.1,0,0,-90,0); // BriefCase
                    SendClientMessage(playerid, COLOR_WHITE, " Izvadili ste svoju aktovku. ");
                    BCase[playerid] = 1;
        return 1;
        }
        else if(BCase[playerid] == 1)
        {
                    StopPlayerHoldingObject(playerid);
                    SendClientMessage(playerid, COLOR_WHITE, " Spremili ste svoju aktovku. ");
                    BCase[playerid] = 0;
        return 1;
        }
        }
        else
        {
SendClientMessage(playerid, COLOR_GRAD2, " Nemate aktovku !");
return 1;
}
        return 1;
}
return 1;
}
Mike Marquez | House of Rave is Trippy Place ! |

malo bolje pogledaj ovo SetPlayerHoldingObject i ovo StopPlayerHoldingObject ti nije definirano znaci pogledaj tamo gdje si uopce to kopirao tu komandu kucaj u taj mod SetPlayerHoldingObject i StopPlayerHoldingObject na pocetku ce ti nac nesto ovako    forward SetPlayerHoldingObject(playerid); to ti fali izgleda...  8)

da fali, ako bude jos nekaj falilo javim c(;

EDIT: Sad sam dobio ove errore: D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(18306) : error 004: function "SetPlayerHoldingObject" is not implemented
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(18313) : error 017: undefined symbol "StopPlayerHoldingObject"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Poslednja Izmena: Januar 07, 2011, 13:27:11 POSLE PODNE od Rey_McShakur
Mike Marquez | House of Rave is Trippy Place ! |

probaj ovo stavit na pocetku skripte

new StopPlayerHoldingObject[MAX_PLAYERS];
new SetPlayerHoldingObject[MAX_PLAYERS];


nezz sta ti ovdje radis moras ovo sve definirat al ja sam ubacio u gf tu komandu definirao BCase i radi...

evo dodaj ovo na pocetak:

#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)

evo errori:

D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(476) : error 021: symbol already defined: "RemovePlayerAttachedObject"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(476) : error 001: expected token: ";", but found "-"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(477) : error 021: symbol already defined: "IsPlayerAttachedObjectSlotUsed"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(477) : error 001: expected token: ";", but found "-"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(54482) : warning 203: symbol is never used: "SetPlayerHoldingObject"
D:\SAMP STVARI\samp ser\gamemodes\lslrp.pwn(54482) : warning 203: symbol is never used: "StopPlayerHoldingObject"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Mike Marquez | House of Rave is Trippy Place ! |