Ok, well sorry, but i was not being rude to him... I am yust a beginer with ideas and want to make stuff. The weird non existing
event is something i found on the forum and tried it, but the correct event isnot helping me to...
the code looks like this:
function onScriptLoad()
{
CreateSphere( Vector( -368, 245.84, 61.02 ), 3.0, Colour( 0, 0, 255 ) )
return 1;
}
function onPlayerEnterSphere( player, sphere )
{
if ( sphere.ID == 0 )
{
MessagePlayer( "Vila Janeza tretjega:", player, RED );
}
return 1;
}
function onPlayerSpawn( player, spawn )
{
if ( player.Name == "xXxMDjxXx" )
{
player.Pos = Vector( -368, 245.84, 61.02 );
}
return 1;
}
and the code onPlayerSpawn, doesent spawn me on that spot eather... idk what am i doing wrong...
And for the sphere, could it be the problem that i have more spheres in other scripts like fuelscript and car respray script, so that the id of this sphere is not 0, or is the sphere id defined for every script itself?
Modified--:
So now, the server gives an error :
AN ERROR HAS OCCURED [getVarInfo: Could not retrieve UserData]
CALLSTACK
*FUNCTION [onPlayerEnterSphere()] Scripts/hise/hise.nut line [10]
LOCALS
[sphere] INSTANCE
[player] INSTANCE
[this] TABLE
AN ERROR HAS OCCURED [getVarInfo: Could not retrieve UserData]
CALLSTACK
*FUNCTION [onPlayerEnterSphere()] Scripts/hise/hise.nut line [10]
LOCALS
[sphere] INSTANCE
[player] INSTANCE
[this] TABLE