Jump to content
  • 0

pomoc 3DTextLabel


Gabik

Dotaz

Cawte chcem sa spytat ci neviete ako spravim ze ked je hrac admin ako podmienka if adminlevel playerid nho chapete ze bude mu pisat nad hlavou admin trebarz bo neviem robit z tym 3dtedxtlabel "pale" :d ak nechapete skusim to viac vysvetlit a dikes za kazdu odpoved "herz"

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

Nahoru do módu:

new Text3D:TEXT[MAX_PLAYERS];

 

Do login nebo do spawn dej (Lepši bude spawn):

 

new text[256];

if(Admin[playerid]>0) return format(text,256,"Admin Level:%d",Admin[playerid]),Update3DTextLabelText(TEXT[playerid],B_CE,text);

 

 

Do OnPlayerConnect:

 

 

TEXT[playerid]=Create3DTextLabel("Hráč",B_ZE,0.0,0.0,0.0,40.0,0);

Attach3DTextLabelToPlayer(TEXT[playerid], playerid, 0.0, 0.0, 0.3);

 

 

Vše co je červeně Uprav podle svého módu. "fresse"

Link to comment
Share on other sites

  • 0

Pocuvaj este tu mi hadze error a ked tam pridam svoju premennu AdminLevel tak hadze za iny error

 

if(Admin[playerid]>0)

 

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 017: undefined symbol "Admin"

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : warning 215: expression has no effect

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 029: invalid expression, assumed zero

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

  • 0
Ty jsi to zapnul na fóru brzo já tam udělal chybu ale editoval jsem to. Tak se na to mrkni ještě jednou :-)

 

A stym čo?

Riadok:

if(AdminLevel[playerid]>0) return format(text,256,"Admin Level:%d"AdminLevel[playerid]),Update3DTextLabelText(TEXT[playerid],B_CE,text);

Error:

 

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 001: expected token: "-string end-", but found "-identifier-"

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : warning 215: expression has no effect

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : error 029: invalid expression, assumed zero

C:\Documents and Settings\GTG\Plocha\bcl.pwn(692) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

  • 0

jak máš:

 

if(AdminLevel[playerid]>0) return format(text,256,"Admin Level:%d"AdminLevel[playerid]),Update3DTextLabelText(TEXT[playerid],B_CE,text);

má být:

 

 

if(AdminLevel[playerid]>0)return format(text,256,"Admin Level:%d",AdminLevel[playerid]),Update3DTextLabelText(TEXT[playerid],B_CE,text);

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...