sprite.HideForPlayer problem

Started by Fjose, Nov 25, 2014, 07:08 PM

Previous topic - Next topic

Fjose

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...


Sebastian

There is no "For" in this function, but "From" !

HideForPlayer - incorrect syntax
HideFromPlayer - correct syntax

Fjose