31.07.2018, 10:33
You made some mistakes..
You made the player edit the object called "objecthouse" not "object".. So you should do it like that ^^,
Also you made another mistake.. You created the object under something called "onplayergamemodeinit", That's wrong, You must use OnGameModeInIt.. so the object will spawn... You'll find OnGameModeInIt already there in your script.. just put the line
anywhere under it.. and don't forget to put the
on top of the script under the includes..
PHP код:
public OnGameModeInIt()
{
object = CreateObject(19360, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
}
cmd:test(playerid, params[])
{
EditObject(playerid, object);
SendClientMessageEx(playerid, COLOR_GRAY, "TESTING");
return 1;
}
Also you made another mistake.. You created the object under something called "onplayergamemodeinit", That's wrong, You must use OnGameModeInIt.. so the object will spawn... You'll find OnGameModeInIt already there in your script.. just put the line
PHP код:
object = CreateObject(19360, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
PHP код:
new object;