SA-MP Forums Archive
+1 rep for helping me out. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: +1 rep for helping me out. (/showthread.php?tid=584010)



+1 rep for helping me out. - canip0000 - 01.08.2015

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


Re: +1 rep for helping me out. - IceBilizard - 01.08.2015

Can you post /makeobject command here?


Re: +1 rep for helping me out. - canip0000 - 01.08.2015

Here you go.




Re: +1 rep for helping me out. - Variable™ - 01.08.2015

Removed.


Re: +1 rep for helping me out. - canip0000 - 01.08.2015

Код:
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;
}



Re: +1 rep for helping me out. - canip0000 - 01.08.2015

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


Re: +1 rep for helping me out. - xVIP3Rx - 01.08.2015

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


Re: +1 rep for helping me out. - canip0000 - 01.08.2015

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