16.08.2012, 14:43
Hee all,
I could use some help with a createobject, it seems so easy but it confuses me,
When i use CreateObject(8399,583.29998779,-1508.59997559,18.70000076,0.00000000,0.00000000,27 0.00000000); //object(nightclub01_lvs) (5)
in OnGameModeInit, The object creates just fine, But when i try to make a command to create the object the object isn't beeing created.
Here is the Code:
if (!strcmp("/testobj2", cmdtext))
{
Level[playerid] = (dUserINT(PlayerName(playerid)).("Level"));
if(Level[playerid] >= 5)
{
CreateObject(8399,583.29998779,-1508.59997559,18.70000076,0.00000000,0.00000000,27 0.00000000); //object(nightclub01_lvs) (5)
SendClientMessageToAll(0xFFD700AA, "Obj2 created");
}
}
Either i do get the message, what did i do wrong?
Thanks in advance,
Jop9888
I could use some help with a createobject, it seems so easy but it confuses me,
When i use CreateObject(8399,583.29998779,-1508.59997559,18.70000076,0.00000000,0.00000000,27 0.00000000); //object(nightclub01_lvs) (5)
in OnGameModeInit, The object creates just fine, But when i try to make a command to create the object the object isn't beeing created.
Here is the Code:
if (!strcmp("/testobj2", cmdtext))
{
Level[playerid] = (dUserINT(PlayerName(playerid)).("Level"));
if(Level[playerid] >= 5)
{
CreateObject(8399,583.29998779,-1508.59997559,18.70000076,0.00000000,0.00000000,27 0.00000000); //object(nightclub01_lvs) (5)
SendClientMessageToAll(0xFFD700AA, "Obj2 created");
}
}
Either i do get the message, what did i do wrong?
Thanks in advance,
Jop9888