[Pomoc] Admin Duty i GS Duty

Započeo Obrisan korisnik
9. Jan. 2012. Zaključano
1,715
pregleda
13
postova
Deleted User
Obrisan korisnik
9. Jan. 2012.
Skripta koju koristim: CLRP edit
Detaljan opis problema:  Kada kucam /aon ili /gson nece da prikaze 3D text label iznad igraca...
Dio skripte:
	if(strcmp(cmd, "/aon", true) == 0)
  {
  if (PlayerInfo >= 1)
{
  SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
      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 = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
  }
  return 1;
  }
if(strcmp(cmd, "/aoff", true) == 0)
{
  if (PlayerInfo >= 1)
  {
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
  DeletePlayer3DTextLabel(playerid, playertextid);
return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
  }
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{

  if (PlayerInfo >= 1)
  {
            SetPlayerArmour(playerid, 1000.0);
    SetPlayerHealth(playerid, 1000.0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
  BroadCast(ZELENKASTA, string);
    new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
    playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
    return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
  }
  return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
  if (PlayerInfo >= 1)
  {
        SetPlayerArmour(playerid, 0.0);
    SetPlayerHealth(playerid, 100.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
      BroadCast(ZELENKASTA, string);
      DeletePlayer3DTextLabel(playerid, playertextidgs);
            return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
  return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):  //
Marjan_King
5
Kingpin
9. Jan. 2012.
Ovo ti je funkcija da prikaciš 3D tekst na igraca kojeg ti želiš:
Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
            Text3D:id                   The 3D Text Label you want to attach.
            playerid                     The player you want to attach the 3D Text Label to.
            OffsetX                       The Offset-X coordinate of the player (the player is 0.0,0.0,0.0).
            OffsetY                       The Offset-Y coordinate of the player (the player is 0.0,0.0,0.0).
            OffsetZ                       The Offset-Z coordinate of the player (the player is 0.0,0.0,0.0).

Primer
Attach3DTextLabelToPlayer(textid, playerid, 0.0, 0.0, 0.0);
Deleted User
Obrisan korisnik
9. Jan. 2012.
Gore umesto new Text3D:playertextidgs; stavis new Text3D:playertextidgs;
I umesto new Text3D:playertextid; stavis new Text3D:playertextid;

Komande:

if(strcmp(cmd, "/aon", true) == 0)
  {
  if (PlayerInfo >= 1)
{
  SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
      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 = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);
return 1;
}
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
  }
  return 1;
  }
if(strcmp(cmd, "/aoff", true) == 0)
{
  if (PlayerInfo >= 1)
  {
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
  Delete3DTextLabel(playertextid);
return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi admin!");
  }
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{

  if (PlayerInfo >= 1)
  {
            SetPlayerArmour(playerid, 1000.0);
    SetPlayerHealth(playerid, 1000.0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
  format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
  BroadCast(ZELENKASTA, string);
    new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
    playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
    Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);
return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
  }
  return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
  if (PlayerInfo >= 1)
  {
        SetPlayerArmour(playerid, 0.0);
    SetPlayerHealth(playerid, 100.0);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
      BroadCast(ZELENKASTA, string);
      Delete3DTextLabel(playertextidgs);
            return 1;
  }
  else
  {
    SendClientMessage(playerid, WHITE, "("COL_RED"LemiAS{FFFFFF}) Nisi GameSage!");
}
  return 1;
}
Deleted User
Obrisan korisnik
10. Jan. 2012.
Imam warninge warning 213: tag mismatch i to ovo ...

to je /aon i /aoff
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);
Delete3DTextLabel(playertextid);


a ovde imam warningde isto za /gson i /gsoff
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);
Delete3DTextLabel(playertextidgs);


pomagajte brzo 🙂
troll3d
4
Made Man
10. Jan. 2012.
Vjerojatno nisi definirao playertextid kao playertextid;
Deleted User
Obrisan korisnik
10. Jan. 2012.
Jesam...
Deleted User
Obrisan korisnik
10. Jan. 2012.
imam ove warninge
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38566) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38570) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38571) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 217: loose indentation
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38580) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38584) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38594) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38598) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38599) : warning 202: number of arguments does not match definition
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38608) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size:          15432 bytes
Code size:          3716352 bytes
Data size:          3240152 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 6988320 bytes

12 Warnings.
Deleted User
Obrisan korisnik
10. Jan. 2012.
Lemi_Zero wrote on January 10, 2012, 2:56 pm:
Jesam...

A jel si obrisao new Text3D:playertextidgs; i stavio new text3D:playertextidgs; tako i za ono drugo ?
Deleted User
Obrisan korisnik
10. Jan. 2012.
ubacio sam kako si mi rekao ali imam ove warninge...
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38572) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38591) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38613) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38631) : warning 213: tag mismatch
Luis
5
Godfather
10. Jan. 2012.
Lemi_Zero wrote on January 10, 2012, 5:34 pm:
ubacio sam kako si mi rekao ali imam ove warninge...
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38572) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38573) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38591) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38612) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38613) : warning 213: tag mismatch
D:\Razno\Classic Life RolePlay\gamemodes\CLRP.pwn(38631) : warning 213: tag mismatch


daj sve linije na kojima ti izbacuje..
Deleted User
Obrisan korisnik
10. Jan. 2012.
evo linija...

... to su linije kod /aon i /aoff
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);

Delete3DTextLabel(playertextid);


... a ovo su linije kod /gson i /gsoff
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);

Delete3DTextLabel(playertextidgs);


ako me nekontas sta ocu da ti kazem add me na skype milan.nesic2009
Luis
5
Godfather
10. Jan. 2012.
a lol daj ove linije iz svoej skripte : 38631 , 38613 , 38612 , 38591 , 38573 , 38572
Deleted User
Obrisan korisnik
10. Jan. 2012.
evo linija

linija 38626
playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);


linija 38627
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);


linija 38645
Delete3DTextLabel(playertextid);


linija 38666
playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);


linija 38667
Attach3DTextLabelToPlayer(playertextidgs, playerid, 0.0, 0.0, 0.5);


linija 38685
Delete3DTextLabel(playertextidgs);


eto to su te linije 😉

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha