+1 rep for helping me out.
#1

Hi, I got this problem, that when I use my command /makeobject <ID> <Des> it says unknown command when i pasted in the Id and the text.

here is my server log before im logging in.



And this is the LoadMakeObject



Need anything else.

Feel free to reply.

Thanks
Reply
#2

Can you post /makeobject command here?
Reply
#3

Here you go.

Reply
#4

Removed.
Reply
#5

Код:
CMD:makeobject(playerid, params[])
{
	if(!CheckAdmin(playerid, HIGH_ADMIN_LEVEL)) return NotAuthMSG(playerid);
	new objectid, modelid, interior, name[256], Float:X, Float:Y, Float:Z;
	if(sscanf(params,"ds[256]",modelid,name)) return SyntaxMSG(playerid, "/makeobject [Object-ID] [Description]");
	GetPlayerPos(playerid, X, Y, Z);
	interior = GetInterior(playerid);
	objectid = CreateDynamicObject(modelid, X, Y, Z, 0.0, 0.0, 0.0, GetWorld(playerid), -1, -1, 200.0);
	ObjectsInfo[objectid][oModel] = modelid;
	ObjectsInfo[objectid][oPosX] = X;
	ObjectsInfo[objectid][oPosY] = Y;
	ObjectsInfo[objectid][oPosZ] = Z;
	ObjectsInfo[objectid][oPosRX] = 0.0;
	ObjectsInfo[objectid][oPosRY] = 0.0;
	ObjectsInfo[objectid][oPosRZ] = 0.0;
	ObjectsInfo[objectid][oObjectOn] = 1;
	ObjectsInfo[objectid][oInterior] = interior;
	ObjectsInfo[objectid][oVirtualWorld] = GetWorld(playerid);
	format(ObjectsInfo[objectid][oName], 256, "%s", name);
	ObjectsInfo[objectid][oObject] = objectid;
	AddObjectToFile(objectid, modelid, interior, GetWorld(playerid), X, Y, Z, name);
	format(msg, sizeof(msg), "A new dynamic object was added, [ModelID: %d, Description: %s]",modelid, ObjectsInfo[objectid][oName]);
	SCM(playerid, COLOR_GREEN, msg);
	return 1;
}
Reply
#6

And yes, im using Mysql database for my objects to save.
Reply
#7

You're probably exceeding the max objects you declared.

"new ObjectsInfo[thisnumber][enum];"

Increase the "MAX_OBJECTS" or whatever number you have in the there
Reply
#8

Thanks Vip3r... that helped me out alot,.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)