03.12.2016, 12:08
Hey there,
I've made a command which shows the location of a player whether they're in the main world, inside a house or inside a shop. Everything works fine except it doesn't show the location of the player if they're inside of a shop/
Here is my code:
I've edited the command just to show you the script for the shop, nothing else.
Could someone please help me?
Thanks
I've made a command which shows the location of a player whether they're in the main world, inside a house or inside a shop. Everything works fine except it doesn't show the location of the player if they're inside of a shop/
Here is my code:
Код:
CMD:loc(playerid, params[]) { new str[ 128 ], id; if( InBusiness{ id } == true ) { for(new i = 0; i != sizeof(storeData); ++i) { format(str, sizeof(str), "[LOCATION]: %s, %s", storeData[i][shopName], GetZoneName(storeData[i][entPos][0], storeData[i][entPos][1], storeData[i][entPos][2])); SendClientMessage(playerid, 0xC5F01AFF, str); } } return 1; }
Could someone please help me?
Thanks