11.08.2010, 22:15
(
Последний раз редактировалось Mr_Osborn; 11.08.2010 в 23:02.
)
Edit:
For those who read and misunderstood me, Registration dialoges works it's the ID 5 and 6 Dialoges that refuse to work (The sendclientmessage doesn't come up).
Well I'm trying to make my own gamemode (TDM) as people say that you should go on something like that to begin with, I've made a registration system (Works) and I tried to make a dialog and when you pick a option it comes up SendClientMessage, however it refuse to work (Nothing comes up)
This is the error and warning I get when I compile it (The registration system works perfectly even if I run without fixing the warnings) but the Dialoges refuse to work.
For those who read and misunderstood me, Registration dialoges works it's the ID 5 and 6 Dialoges that refuse to work (The sendclientmessage doesn't come up).
Well I'm trying to make my own gamemode (TDM) as people say that you should go on something like that to begin with, I've made a registration system (Works) and I tried to make a dialog and when you pick a option it comes up SendClientMessage, however it refuse to work (Nothing comes up)
This is the error and warning I get when I compile it (The registration system works perfectly even if I run without fixing the warnings) but the Dialoges refuse to work.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 6) if(response) { if(listitem == 0) { SendClientMessage(playerid, 0xFF000000, "Date: 11th August 2010 - Time: 11:55 PM (GMT+1)"); SendClientMessage(playerid, 0xFF000000, "1) Addition of Gangs"); SendClientMessage(playerid, 0xFF000000, "2) Addition of Jetpack Anticheat"); SendClientMessage(playerid, 0xFF000000, "3) Addition of Gang Headquarters"); SendClientMessage(playerid, 0xFF000000, "4) Addition of Registration System"); SendClientMessage(playerid, 0xFF000000, "5) Addition of the Begining Menu (/help)"); SendClientMessage(playerid, 0xFF000000, "5) Addition of the teleports (/duel & /army)"); } if(listitem == 1) { SendClientMessage(playerid, 0xFF000000, "NO UPDATES AT THIS MOMENT" ); return 1; } if(dialogid == 5) if(response) { if(listitem == 0) { SendClientMessage(playerid, 0xFF000000, "The gang system here at United States Deathmatch is the same as on other TDM server."); SendClientMessage(playerid, 0xFF000000, "There is no specific commands for gangs at this moment but in the future there will come gang chat etc."); SendClientMessage(playerid, 0xFF000000, "If you want to change your gang then press F4 and type /kill in order to get to the main menu."); } if(listitem == 1) { SendClientMessage(playerid, 0xFF000000, "SERVER: You are not authorized to read this." ); SendClientMessage(playerid, 0xFF000000, "To get in contact with an administrator then please be patience and ask over the global chat." ); SendClientMessage(playerid, 0xFF000000, "Administrators are here to keep the peace in the server and keep the hackers away." ); } if(listitem == 2) { SendClientMessage(playerid, 0xFF000000, "In order to get to the teleport menu then please type /teleports." ); } if(listitem == 3) { SendClientMessage(playerid, 0xFF000000, "Credits for making this gamemode" ); SendClientMessage(playerid, 0xFF000000, "Jack Shred: Helping out with errors" ); SendClientMessage(playerid, 0xFF000000, "Joey Tucker: Helping out with errors" ); SendClientMessage(playerid, 0xFF000000, "Ethan Cool: Helping out with errors" ); return 1; } if (dialogid == Register) { new nombrejugador[MAX_PLAYER_NAME], archivo[256]; if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Welcome to United States Deathmatch \n Please type in a password you want to have \n Your account is not registered.", "Register", "Cancel"); if (!response) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Welcome to United States Deathmatch \n Please type in a password you want to have \n Your account is not registered.", "Register", "Cancel"); GetPlayerName(playerid, nombrejugador, sizeof(nombrejugador)); format(archivo, sizeof(archivo), "%s.ini", nombrejugador); dini_Create(archivo); dini_Set(archivo, "User", nombrejugador); dini_Set(archivo, "Password", inputtext); ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Your account is registered, please login with your password", "Login", "Cancel"); if (dialogid == Logged) { new nombrejugador[MAX_PLAYER_NAME], archivo[256], comprobante[256]; if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Your account is registered, please login with your password", "Login", "Cancel"); if (!response) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Your account is registered, please login with your password", "Login", "Cancel"); GetPlayerName(playerid, nombrejugador, sizeof(nombrejugador)); format(archivo, sizeof(archivo), "%s.ini", nombrejugador); format(comprobante, sizeof(comprobante), "%s", dini_Get(archivo, "Key:")); if (!strcmp (inputtext, comprobante)) { Login[playerid] = 1; } else { ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Your account is registered, please login with your password", "Login", "Cancel"); } } return 1; }