16.07.2011, 10:31
Im recieving errors for this part of my code ive been making constant changes to it but i still cant work it out.
The Errors are:
This is the part of the code:
Thanks for your time
The Errors are:
Код:
C:\Users\mattt\Desktop\New\gamemodes\newserver.pwn(253) : error 017: undefined symbol "kick" C:\Users\mattt\Desktop\New\gamemodes\newserver.pwn(255) : error 002: only a single statement (or expression) can follow each "case" C:\Users\mattt\Desktop\New\gamemodes\newserver.pwn(255 -- 256) : error 028: invalid subscript (not an array or too many subscripts): "response" C:\Users\mattt\Desktop\New\gamemodes\newserver.pwn(255 -- 257) : error 001: expected token: "}", but found "if" C:\Users\mattt\Desktop\New\gamemodes\newserver.pwn(255 -- 257) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 1:if(!response)return kick(playerid); if(!response) { if(strlen(inputtext)) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Register", "Please type in a password.", "Register","Exit"); } if(INI_Open(getINI(playerid))) { INI_WriteString("password", inputtext); INI_WriteInt("age", inputtext); INI_WriteInt("cash", 200000); INI_WriteInt("score",1); INI_WriteInt("kills", 0); INI_WriteInt("deaths", 0); INI_WriteInt("timeplayed", 0); INI_WriteInt("ipaddress", ipaddress); INI_WriteInt("saveposition", saveposition); INI_WriteInt("Admin", 0); INI_WriteInt("faction", 0); INI_WriteInt("faction", 0); INI_WriteInt("bankdeposit", 0); INI_WriteInt("ban", 0); INI_WriteString("banreason", ""); INI_WriteInt("house", 0); INI_WriteInt("biz", 0); INI_WriteInt("fightstyle", 0); INI_Save(); INI_Close(); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login", "Login", "Exit"); } } case 2: { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Login", "Please enter your password to login", "Login", "Exit"); } } return 1; }