[Pomoc] Erori

Započeo Erorr, Januar 28, 2013, 09:39:16 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja Skripta od 0
Detaljan opis problema: Izbacuje mi neke Erore:


1. error 004: function "SetPlayerToTeamFromClass" is not implemented

-Evo te linije gde se nalazi Eror

public OnPlayerRequestClass(playerid, classid) {
SetupPlayerForClassSelection(playerid);
SetPlayerToTeamFromClass(playerid, classid);  //OVDE BACA EROR
if(classid == 0 || classid == 1) {
    GameTextForPlayer(playerid, "~g~Grove Street ~w~Team !", 3000, 2);
}else if(classid == 2 || classid == 3) {
    GameTextForPlayer(playerid, "~r~Ballas ~w~Team !", 3000, 2); }
return 1; }



2. Ova 3 erora baca.
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration


-Evo linije na kojima se nalaze Erori:
public SetPlayerToTeamFromClass(playerid, classid);
   if(classid == 0 || classid == 1) {   // OVDE BACA EROR
       pTim[playerid] = 1;
   }else if(classid == 2 || classid == 3) {  // OVDE BACA EROR
      pTim[playerid] = 2; }
   return 1; }   // OVDE BACA EROR
[/code]


3.error 017: undefined symbol "SetPlayerCameraLockAt"

Evo linije na kojima je Eror:

public SetupPlayerForClassSelection(playerid) {
SetPlayerPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraLockAt(playerid,2217.9609,-1163.9442,25.7266);  //OVDE BACA EROR
SetPlayerFacingAngle(playerid,91.8800);
return 1; }



Dio skripte: Ima gore.
Neke slike/video za lakse dobivanje pomoci(neobavezno): //


P.S Ja sam vam dao cele komande. To pravim timove neke, po tutorialu i baca mi te erore. Pored linija imate pise "//OVDE BACA EROR" znaci da u toj liniji baca, nadam se da ce neko da razume ovaj post, mozda je malo ne pregledno ali molim vas pomognite mi. Hvala unapred! :)
Poslednja Izmena: Januar 28, 2013, 09:40:03 PRE PODNE od Erorr
RiverWood RolePlay


mozda zato sto si ga pre svega napisao pogresno? SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
        gTeam[playerid] = TEAM_PILOT;
    }
    else if(classid == 1)
    {
        gTeam[playerid] = TEAM_ARMY;
    }
    else if(classid == 2)
    {
        gTeam[playerid] = TEAM_RESCUE;
    }

}
ovde varijable i timove izmeni u svoje

Ne razumem, Ja sam forwardovao vako

forward SetupPlayerForClassSelection(playerid);

Sto sam ovamo i napravio, kako sad da stavim to? Da promenim da izbacim ovo "Selection"? Ili sta?
RiverWood RolePlay


P.S
Stavio sam vako:
public SetPlayerToTeamFromClass(playerid, classid);

    if(classid == 0)
    {
        gTeam[playerid] = TEAM_PILOT;
    }
    else if(classid == 1)
    {
        gTeam[playerid] = TEAM_ARMY;
    }
    else if(classid == 2)
    {
        gTeam[playerid] = TEAM_RESCUE;
    }

return 1; }


I baca ove erore:

error 004: function "SetPlayerToTeamFromClass" is not implemented
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration




SORY ZA DP!
Poslednja Izmena: Januar 28, 2013, 11:51:15 PRE PODNE od Erorr
RiverWood RolePlay



public SetPlayerToTeamFromClass(playerid, classid); // ovaj nevalja

public SetPlayerToTeamFromClass(playerid, classid) // ovaj VALJA

pogledaj razliku

HVALA!


Ostao samo jos 1 Eror, evo ga:

error 017: undefined symbol "SetPlayerCameraLockAt"

Jer treba da stavim #define SetPlayerCameraLockAt; Ili? Moze pomoc i oko ovog Erora, linije imate gore, u 1. postu.. Ali evo i ovde.

SetPlayerPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraLockAt(playerid,2217.9609,-1163.9442,25.7266);   //OVDE JE EROR
SetPlayerFacingAngle(playerid,91.8800);


EDIT: Nece #define probao sam.
Poslednja Izmena: Januar 29, 2013, 09:14:02 PRE PODNE od Erorr
RiverWood RolePlay


SetPlayerCameraLookAt umjesto SetPlayerCameraLockAt

MARIO WLSECO • KUCNI SERVER • SMECAR

SetPlayerPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraPos(playerid,2217.9609,-1163.9442,25.7266);
SetPlayerCameraLookAt(playerid,2217.9609,-1163.9442,25.7266);   
SetPlayerFacingAngle(playerid,91.8800);

Hvala, moze LOCK. :)
RiverWood RolePlay