Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Fjose on Nov 25, 2014, 07:08 PM

Title: sprite.HideForPlayer problem
Post by: Fjose on Nov 25, 2014, 07:08 PM
the problem is simple.
I have created a sprite and this is loaded in onScriptLoad(), when I use "any_sprite.ShowForPlayer( player )" in onPlayerDeath works fine, when player dies, this will be auto respawned but the server shows an error in the line.

any_sprite.HideForPlayer( player ). the error in the console is: "player" variable doesn't exists but exists...

Title: Re: sprite.HideForPlayer problem
Post by: Sebastian on Nov 25, 2014, 09:21 PM
There is no "For" in this function, but "From" !

HideForPlayer - incorrect syntax
HideFromPlayer - correct syntax
Title: Re: sprite.HideForPlayer problem
Post by: Fjose on Nov 26, 2014, 02:41 AM
Solved, thanks