04.05.2013, 14:35
I've been trying to make a /map that brings up a dialogue and sets a SetPlayerCheckpoint on the mini map.
The command code I made works and is here:
For each point I have a simple
But I can't work out how to create a dialog that will work properly, when I try, it just creates loads of errors and crashes the compiler. I know this is really simple stuff, but I'm a bit of a pawn noob, any help would be awesome!
- WGDM
The command code I made works and is here:
Код:
// The map. //Disable Checkpoint if (strcmp("/kc", cmdtext, true) == 0) { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, COLOR_YELLOW, "You disabled your checkpoint."); return 1; } //Main Command if (strcmp("/map", cmdtext, true) == 0) { ShowPlayerDialog(playerid, 1024, DIALOG_STYLE_LIST, "Map", "SAPD\nCity Hall\nAD Agency\nDMV\n24/7\nDMV\nArms Dealer\nTransFender\nPrison\nUnity Station\nBank\nVehicle Dealership\nMotel\nPig Pen (Whore Job)\nClothes (Binco)\nGym (Bodyguard)\nFire Department\nAirport\nLawyer", "Close", ""); format(string, sizeof(string), "%s pulls out map from their pocket. ((/map))", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; }
Код:
SendClientMessage(playerid, COLOR_YELLOW, "Please follow the red triangle on your gps ((Mini-Map)) | Use /kc to cancel."); SetPlayerCheckpoint(playerid, 1481.4309,-1749.9603,15.4453,178.5093, 4.0);
- WGDM