13.01.2014, 14:36
I think this is wrong:
It should be like this?
Код:
new object; public OnGameModeInit() { object = CreateObject(1337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/oedit", true)) { EditObject(playerid, objectid); SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You can now edit the object!"); return 1; } return 0; }
Код:
new object; public OnGameModeInit() { object = CreateObject(1337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/oedit", true)) { EditObject(playerid, object); SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You can now edit the object!"); return 1; } return 0; }