SA-MP Forums Archive
Side adress in server - 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)
+--- Thread: Side adress in server (/showthread.php?tid=319054)



Side adress in server - MTCool - 17.02.2012

Hey,
I want to put my site adress in my server like 'chaneme' in this one:
http://i42.tinypic.com/2a8epol.jpg
*I circled it in red

What is the script?
Thanks.


Re: Side adress in server - FuTuяe - 17.02.2012

You can use this:
https://sampwiki.blast.hk/wiki/TextDrawCreate


Re: Side adress in server - MTCool - 17.02.2012

Thanks


Re: Side adress in server - MTCool - 17.02.2012

I tried to use at as a filterscript because in my own script when I added it pawn library stopped working, and I got this errors:
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(5) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(9) : error 017: undefined symbol "TextDrawCreate"
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(9) : warning 213: tag mismatch
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(13) : warning 235: public function lacks forward declaration (symbol "OnPlayerConnect")
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(16) : error 017: undefined symbol "TextDrawShowForPlayer"
C:\Users\master\Desktop\LARP\filterscripts\text.pw n(9) : warning 204: symbol is assigned a value that is never used: "welcomeText"

I just copied it as it is and changed the adress


Re: Side adress in server - Guitar - 17.02.2012

-Nevermind, I must go to sleep.. But tomorrow I'll come back.


Re: Side adress in server - MTCool - 17.02.2012

Quote:
Originally Posted by Guitar
Посмотреть сообщение
-Nevermind, I must go to sleep.. But tomorrow I'll come back.
Damn Ok, thanks dude!


Re: Side adress in server - Twisted_Insane - 17.02.2012

Show me your code with your errors, then I can help you!


Re: Side adress in server - MTCool - 17.02.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Show me your code with your errors, then I can help you!
I just tried this one:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText;

public OnGameModeInit()
{
// This line is used to create the textdraw.
// Note: This creates a textdraw without any formatting.
welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
return 1;
}

public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid,welcomeText);


Re: Side adress in server - Twisted_Insane - 17.02.2012

I suggest you to read this here again and make sure, you're doing everything right! It's better and more explained that the wiki:

https://sampforum.blast.hk/showthread.php?tid=2867

Do the errors disappear if you delete all that textdraw-stuff?


Re: Side adress in server - MTCool - 17.02.2012

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
I suggest you to read this here again and make sure, you're doing everything right! It's better and more explained that the wiki:

https://sampforum.blast.hk/showthread.php?tid=2867

Do the errors disappear if you delete all that textdraw-stuff?
It worked, but it's not like I wanted.
I want it to be downstairs.