ShowPlayerDialog and DIALOG_STYLE_PASSWORD
Can you show us a OnPlayerClickTextDraw + OnDialogResponse Codes?
|
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #include <core> #include <float> #define DIALOG_1 0 #define DIALOG_2 1 #define DIALOG_3 2 #define DIALOG_4 3 #pragma tabsize 0 #include YSI\y_timers new TDEditor_TD6; new TDEditor_TD7; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { TDEditor_TD5 = TextDrawCreate(193.125000, 132.250076, "Login"); TextDrawLetterSize(TDEditor_TD5, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD5, 1); TextDrawColor(TDEditor_TD5, -1); TextDrawSetShadow(TDEditor_TD5, 0); TextDrawSetOutline(TDEditor_TD5, 0); TextDrawBackgroundColor(TDEditor_TD5, 255); TextDrawFont(TDEditor_TD5, 2); TextDrawSetProportional(TDEditor_TD5, 1); TextDrawSetShadow(TDEditor_TD5, 0); TDEditor_TD6 = TextDrawCreate(387.500000, 132.250015, "Register"); TextDrawLetterSize(TDEditor_TD6, 0.400000, 1.600000); TextDrawAlignment(TDEditor_TD6, 1); TextDrawColor(TDEditor_TD6, -1); TextDrawSetShadow(TDEditor_TD6, 0); TextDrawSetOutline(TDEditor_TD6, 0); TextDrawBackgroundColor(TDEditor_TD6, 255); TextDrawFont(TDEditor_TD6, 2); TextDrawSetProportional(TDEditor_TD6, 1); TextDrawSetShadow(TDEditor_TD6, 0); SetGameModeText("Test"); return 1; } public OnGameModeExit() { return 1; } public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TDEditor_TD5); TextDrawShowForPlayer(playerid, TDEditor_TD6); return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid, TDEditor_TD5); TextDrawHideForPlayer(playerid, TDEditor_TD6); return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestClass(playerid, classid) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; }