SA-MP Forums Archive
Need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help (/showthread.php?tid=245881)



Need help - SpiderWalk - 02.04.2011

How to create a over name a text how to do it?? Help!(But to have like CoD 5 Ressuraction)!


Re: Need help - Alby Fire - 02.04.2011

Quote:
Originally Posted by SpiderWalk
Посмотреть сообщение
(But to have like CoD 5 Ressuraction)!
Wth is that? .-.
Anyway you have to use the 3dtextlabel, this way
pawn Код:
//At the top of your script:
new
   Text3D:label[MAX_PLAYERS];
//Into OnPlayerSpawn
label[playerid] = Create3DTextLabel("CoD 5 Resurraction!",0xFFFFFFFF,0.0,0.0,0.0,10.0,0,1);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4)



Re: Need help - Stigg - 02.04.2011

https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer


Re: Need help - iJumbo - 02.04.2011

create a variable text3d

pawn Код:
new Text3D:labeltest[MAX_PLAYERS];
create it in onplayerconnect and attach to player
pawn Код:
labeltest[playerid] = Create3DTextLabel(" ",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(labeltest[playerid], playerid, 0.0, 0.0, 0.8);

make sure u delete it in onplayerdisconnect

pawn Код:
Delete3DTextLabel(labeltest[playerid]);
and yo ucan update the text for player where u want

pawn Код:
Update3DTextLabelText(labeltest[playerid],RED,"Hello!");



Re: Need help - SpiderWalk - 02.04.2011

C:\Documents and Settings\Korisnik\Desktop\G.R.P\filterscripts\comm ands.pwn(57) : error 017: undefined symbol "labeltest"
C:\Documents and Settings\Korisnik\Desktop\G.R.P\filterscripts\comm ands.pwn(57) : warning 215: expression has no effect
C:\Documents and Settings\Korisnik\Desktop\G.R.P\filterscripts\comm ands.pwn(57) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Korisnik\Desktop\G.R.P\filterscripts\comm ands.pwn(57) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Korisnik\Desktop\G.R.P\filterscripts\comm ands.pwn(57) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

And when i want to do compline this errors is in


Re: Need help - SpiderWalk - 02.04.2011

what to do!?