[POMOC] U VEZI KOMANDE HITNO!

Započeo GameSager, Januar 27, 2012, 18:38:44 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:CL
Detaljan opis problema:Nece komanda
Dio skripte:eto cijela komanda uglavnom kad napisem /aon pise iznad glave admin na duznosti ne ometaj i nakon 1 sec se makne ja bi htio da uvijek pise kad je /aon !!! HITNO!
if(strcmp(cmd, "/aon", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
{
  SetPlayerArmour(playerid, 9999); // Nisam siguran jesu li 4 devetke ali ugl 4-5 devetni znaci da ti se stalno HP restarta
SetPlayerHealth(playerid, 9999); // Nisam siguran jesu li 4 devetke ali ugl 4-5 devetni znaci da ti se stalno HP restarta
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
        BroadCast(SVETLOPLAVA, string);
    new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
            playertextid[playerid] = Create3DTextLabel("Admin na duznosti \n Ne ometaj",SVETLOPLAVA,0,0,0,70,-1,1);
            Attach3DTextLabelToPlayer(playertextid[playerid],playerid, 0,0,0);
return 1;
}
        }

Neke slike/video za lakse dobivanje pomoci(neobavezno):///
Pocetni Skripter Balkan Life RolePlay Owner

Vec 1000 tema o jednom te istom ovo je posljenji put da ti postam imas trazilicu ..
vrh srkitpe : new Text3D:playertextid[MAX_PLAYERS];
onda pod public OnPlayerDisconnect(playerid, reason)
stavi :
    Delete3DTextLabel(playertextid[playerid]);
i onda radis komandu :
if(strcmp(cmd, "/aon", true) == 0)
    {
    if (PlayerInfo[playerid][pAdmin] >= 1)
{
              SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
                SCM(playerid,-1,"Sada ste na duznosti!");
        playertextid[playerid] = Create3DTextLabel("Admin na Duznosti!",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer( playertextid[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
        }

 

C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(781) : error 021: symbol already defined: "playertextid"
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5985) : warning 217: loose indentation
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5985) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5986) : warning 217: loose indentation
781:
new Text3D:playertextid[MAX_PLAYERS];
ja ono tvoje negdje gore dodo sad je neki error tu...
5985:
public Delete3DTextLabel(playertextid[playerid]);
5986:
    if(AdminSpec[playerid] == 1)
Poslednja Izmena: Januar 27, 2012, 19:33:28 POSLE PODNE od GameSager
Pocetni Skripter Balkan Life RolePlay Owner

new Text3D:playertextid[MAX_PLAYERS]; - ovo ti je vec definisano znaci obrisi ga

public Delete3DTextLabel(playertextid[playerid]); obrisi to crveno na kraju

C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5984) : warning 217: loose indentation
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5984) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5985) : warning 217: loose indentation
5984-5985:
public Delete3DTextLabel(playertextid[playerid])
    if(AdminSpec[playerid] == 1)

Pocetni Skripter Balkan Life RolePlay Owner

Citat: GameSager poslato Januar 27, 2012, 20:30:19 POSLE PODNE
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5984) : warning 217: loose indentation
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5984) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Balkan-Life RPG\Balkan-Life RPG\gamemodes\BLRP.pwn(5985) : warning 217: loose indentation
5984-5985:
public Delete3DTextLabel(playertextid[playerid])
    if(AdminSpec[playerid] == 1)


Postavi ceo public Delete3DTextLabel(playertextid[playerid]) da vidim..

public Delete3DTextLabel(playertextid[playerid])
       if(AdminSpec[playerid] == 1)

samo to
Pocetni Skripter Balkan Life RolePlay Owner

Citat: GameSager poslato Januar 27, 2012, 21:03:21 POSLE PODNE
public Delete3DTextLabel(playertextid[playerid])
       if(AdminSpec[playerid] == 1)

samo to
lol sta ce ti taj public ??
stavi pod :  public OnPlayerDisconnect(playerid, reason)

Delete3DTextLabel(playertextid[playerid]);

SUPER sve je ok probat cu poslje jel radi to gore text polockajte sve moje teme ukljucujuci ovu Hvala!
Pocetni Skripter Balkan Life RolePlay Owner