05.02.2014, 14:52
Hi.. 2 questions:
1. what the differences between GetPlayer2DZone GetPlayer3DZone? (what makes it difference 2D 3D)
2. I made a command for GPS, there is a function called GetPlayer2DZone and its for playerid, i need function for house coordinates X Y Z and to say its street name but unfortunately it returns Blueberry acres...
If i set X Y Z HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]
then i get tag mismatch warning.
Sorry for my bad english
Here my cmd:
1. what the differences between GetPlayer2DZone GetPlayer3DZone? (what makes it difference 2D 3D)
2. I made a command for GPS, there is a function called GetPlayer2DZone and its for playerid, i need function for house coordinates X Y Z and to say its street name but unfortunately it returns Blueberry acres...
If i set X Y Z HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ]
then i get tag mismatch warning.
Sorry for my bad english
Here my cmd:
Код:
CMD:setgps(playerid, params[]) { new string[128], houseid; new zone[MAX_ZONE_NAME]; if(PlayerInfo[playerid][pGPS] > 0) { if(sscanf(params, "d", houseid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /setgps [houseid]"); { SetPlayerCheckpoint(playerid, HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], 3); GetPlayer2DZone(HouseInfo[houseid][hExteriorX], HouseInfo[houseid][hExteriorY], HouseInfo[houseid][hExteriorZ], zone, MAX_ZONE_NAME); format(string, sizeof(string), "You have set your GPS to St. %s %d.", zone, houseid); SendClientMessageEx(playerid, COLOR_WHITE, string); } } else { SendClientMessageEx(playerid, COLOR_GRAD1, "You don't have a GPS."); // } } return 1; }