Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: SilviUDaciaLogan on Jul 06, 2017, 03:03 PM

Title: Problem with Sprite
Post by: SilviUDaciaLogan on Jul 06, 2017, 03:03 PM
Hello! I have a problem with Sprite. Work, but when I choose the character it does not erase from the eran and stays on the screen. Can you help me solve when I choose the character to disappear?
The script that I use:

Logo <- null;
sX <- GUI.GetScreenSize().X;
sY <- GUI.GetScreenSize().Y;

Logo <- GUISprite( "icon.png", VectorScreen( 809, 103) );
Logo.Size = VectorScreen( sX, sY );
SetMouseEnable( false )


Picture:
http://imgur.com/a/ihcbx


Title: Re: Problem with Sprite
Post by: DizzasTeR on Jul 07, 2017, 10:59 AM
You can just do Logo = null; whenever you want to delete the sprite.
Title: Re: Problem with Sprite
Post by: SilviUDaciaLogan on Jul 07, 2017, 11:40 AM
But how can I do it to delete, after I choose my caracter? Tell me, please!
Title: Re: Problem with Sprite
Post by: PunkNoodle on Jul 07, 2017, 02:10 PM
.
Title: Re: Problem with Sprite
Post by: NicusorN5 on Jul 07, 2017, 02:21 PM
Read this : http://forum.vc-mp.org/?topic=2719.0 .
@PunkNoodle He should use streams.
Title: Re: Problem with Sprite
Post by: SilviUDaciaLogan on Jul 07, 2017, 02:25 PM
not working
Title: Re: Problem with Sprite
Post by: PunkNoodle on Jul 07, 2017, 05:44 PM
Nevermind I forgot GUI are client scripts, in my suggestion I used server scripts, thus I edited it out to avoid misleading.