[FilterScript] Textdraw Login Screen
#1

Hi, So I just made a textdraw login screen for my server and thought about releasing it here.




http://i.imgur.com/Sm06zw7.png
Reply
#2

Simple, but good job!
Reply
#3

It looks pretty nice
Reply
#4

Nice !
Reply
#5

Looks nice.
Reply
#6

Good job but.
Destroy textdraw?

PHP код:
public OnPlayerSpawn(playerid)
{
    
PlayerTextDrawDestroy(playeridTextdraw0);
    
PlayerTextDrawDestroy(playeridTextdraw1);
    
PlayerTextDrawDestroy(playeridTextdraw2);
    
PlayerTextDrawDestroy(playeridTextdraw3);
    
PlayerTextDrawDestroy(playeridTextdraw4);
    
PlayerTextDrawDestroy(playeridTextdraw5);
    return 
1;

Reply
#7

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Good job but.
Destroy textdraw?

PHP код:
public OnPlayerSpawn(playerid)
{
    
PlayerTextDrawDestroy(playeridTextdraw0);
    
PlayerTextDrawDestroy(playeridTextdraw1);
    
PlayerTextDrawDestroy(playeridTextdraw2);
    
PlayerTextDrawDestroy(playeridTextdraw3);
    
PlayerTextDrawDestroy(playeridTextdraw4);
    
PlayerTextDrawDestroy(playeridTextdraw5);
    return 
1;

Since the player logs just once, there's no need to use them any longer (OnPlayerConnect gets called just once). To me it seems more like an NGG design concept, however, good job.
Reply
#8

Quote:
Originally Posted by Private200
Посмотреть сообщение
Since the player logs just once, there's no need to use them any longer (OnPlayerConnect gets called just once). To me it seems more like an NGG design concept, however, good job.
Actually, I tried it and it didn't disappear after i spawned.
Reply
#9

All good but 3-4 textdraws arent a Filterscript. You should add this as useful snipets or something like that.
https://sampforum.blast.hk/showthread.php?tid=281&page=119
Reply
#10

I found this error >
Код:
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(8) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(10) : error 017: undefined symbol "CreatePlayerTextDraw"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(10) : warning 213: tag mismatch
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(11) : warning 217: loose indentation
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(11) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(12) : error 017: undefined symbol "PlayerTextDrawFont"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(13) : error 017: undefined symbol "PlayerTextDrawLetterSize"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(14) : error 017: undefined symbol "PlayerTextDrawColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(15) : error 017: undefined symbol "PlayerTextDrawSetOutline"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(16) : error 017: undefined symbol "PlayerTextDrawSetProportional"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(17) : error 017: undefined symbol "PlayerTextDrawSetShadow"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(18) : error 017: undefined symbol "PlayerTextDrawUseBox"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(19) : error 017: undefined symbol "PlayerTextDrawBoxColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(20) : error 017: undefined symbol "PlayerTextDrawTextSize"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(21) : error 017: undefined symbol "PlayerTextDrawSetSelectable"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(23) : error 017: undefined symbol "CreatePlayerTextDraw"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(23) : warning 213: tag mismatch
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(24) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(25) : error 017: undefined symbol "PlayerTextDrawFont"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(26) : error 017: undefined symbol "PlayerTextDrawLetterSize"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(27) : error 017: undefined symbol "PlayerTextDrawColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(28) : error 017: undefined symbol "PlayerTextDrawSetOutline"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(29) : error 017: undefined symbol "PlayerTextDrawSetProportional"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(30) : error 017: undefined symbol "PlayerTextDrawSetShadow"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(31) : error 017: undefined symbol "PlayerTextDrawUseBox"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(32) : error 017: undefined symbol "PlayerTextDrawBoxColor"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(33) : error 017: undefined symbol "PlayerTextDrawTextSize"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(34) : error 017: undefined symbol "PlayerTextDrawSetSelectable"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(36) : error 017: undefined symbol "CreatePlayerTextDraw"
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(36) : warning 213: tag mismatch
H:\GAME\SA-MP Server\HGTDM\filterscripts\textdraw.pwn(37) : error 017: undefined symbol "PlayerTextDrawAlignment"

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


26 Errors.

Please help me to fix this problem...
Thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)