24.10.2017, 14:58
Hello guys, I have just created a command for creating in-game objects, but when the object has negative value, it sets the coordinate to 0.00000. I'm using sscanf for the command, so please help me! Look at my code:
PLEASE HELP, +1 REP TO THE HELPERS
PHP код:
if(sscanf(params, "iffffffii", ObjectInfo[o][oModel], ObjectInfo[o][oX], ObjectInfo[o][oY], ObjectInfo[o][oZ], ObjectInfo[o][oRX], ObjectInfo[o][oRY], ObjectInfo[o][oRZ], ObjectInfo[o][oVW], ObjectInfo[o][oInt]))
return SendClientMessage(playerid, COLOR_WHITE, "Usage: /cObject [ModelID] [Position:X] [Position:Y] [Position:Z] [Rotation:X] [Rotation:Y] [Rotation:Z] [VirtualWorldID] [InteriorID]");
