Command isn't working.. -
Hello I trying to make a command that will edit the position of the oocshop but the problem is getting a warning to the shop isn't creating..
Код:
if(strcmp(choice, "position", true) == 0)
{
GetPlayerPos(playerid, OOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ], OOCshopInfo[id][OOCshopAngle]);
//OOCshopInfo[id][impoundInt] = GetPlayerInterior(playerid);
//OOCshopInfo[id][impoundVW] = GetPlayerVirtualWorld(playerid);
format(string, sizeof(string), "You have changed the position on OOC Shop #%d.", id);
SendClientMessage(playerid, COLOR_WHITE, string);
DestroyDynamic3DTextLabel(OOCshop[id]);
OOCshopInfo[NewOOCshopID][OOCshopObjectID] = CreateDynamicObject(2754, OOCshopInfo[NewOOCshopID][OOCshopX], OOCshopInfo[NewOOCshopID][OOCshopY], OOCshopInfo[NewOOCshopID][OOCshopZ]-0.1, 0, 0, OOCshopInfo[NewOOCshopID][OOCshopAngle],0,0,-1,250);
format(string, sizeof(string), "{01FCFF}[OOC Shop]{F0CC00}\nYou can Purchase OOC Items here\nOOC Shop ID: %d\n[/oocshop]", NewOOCshopID);
OOCshop[NewOOCshopID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, OOCshopInfo[NewOOCshopID][OOCshopX],
OOCshopInfo[NewOOCshopID][OOCshopY], OOCshopInfo[NewOOCshopID][OOCshopZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
SpawnedOOCshop++;
SaveOOCshop(id);
format(string, sizeof(string), "%s has edited OOC Shop ID %d's position.", GetPlayerNameEx(playerid), id);
Log("logs/oocshopedit.log", string);
return 1;
}
Re: Command isn't working.. -
PHP код:
GetPlayerPos(playerid, OOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ], OOCshopInfo[id][OOCshopAngle]);
PHP код:
GetPlayerPos(playerid, OOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ]);
GetPlayerFacingAngle(playerid, OOCshopInfo[id][OOCshopAngle]);