20.10.2018, 17:36
this creating this registry system is donning these error but I can not find the error, please help me.
-------------------------------------------------------------------------------------------------------------------
line error
(221) : error 029: invalid expression, assumed zero
(230) : error 029: invalid expression, assumed zero
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : error 001: expected token: ";", but found ")"
(230) : error 029: invalid expression, assumed zero
(230) : fatal error 107: too many error messages on one line
5 Errors.
-------------------------------------------------------------------------------------------------------------------
(215)public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
(216){
(217) new file[90];
(21 format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
(219) switch(dialogid)
(220) {
(221) case DIALOG_REGISTRO:
(222) {
(223) if(response)
(224) {
(225) if(!strlen(inputtext))
(226) {
(227) new string[124];
(22 SendClientMessage(playerid, 0xFF0000AA, "[ERRO] Digite uma senha para se registrar!");
(229) format(string, sizeof(string), "Nome:%s/nConta: Sem Registro/nDigite senha !");
(230) ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "Brasil Game G -
Registro", string, "Registrar", "Cancelar");
(231) }
(232) else
(233) {
(234) DOF2_CreatFile(file);
(235) PlayerInfo[playerid][Dinheiro] = 5000;
(236) DOF2_SetInt(file, "Level", PlayerInfo[playerid][Level]);
(237) DOF2_SetInt(file, "Dinheiro", PlayerInfo[playerid][Dinheiro]);
(23 DOF2_SaveFile();
(239) SendClientMessage(playerid, 0x0080FFAA, "[SERVER] Sua conta foi criada com sucesso,
tenha um bom Jogo!");
(240) SpawnPlayer(playerid);
(241) }
(242) }
(243) }
(244) }
(245) return 1;
(246)}
------------------------------------------------------------------
Please people if you have seen this error speaks the line there and what it is.
-------------------------------------------------------------------------------------------------------------------
line error
(221) : error 029: invalid expression, assumed zero
(230) : error 029: invalid expression, assumed zero
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : warning 215: expression has no effect
(230) : error 001: expected token: ";", but found ")"
(230) : error 029: invalid expression, assumed zero
(230) : fatal error 107: too many error messages on one line
5 Errors.
-------------------------------------------------------------------------------------------------------------------
(215)public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
(216){
(217) new file[90];
(21 format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
(219) switch(dialogid)
(220) {
(221) case DIALOG_REGISTRO:
(222) {
(223) if(response)
(224) {
(225) if(!strlen(inputtext))
(226) {
(227) new string[124];
(22 SendClientMessage(playerid, 0xFF0000AA, "[ERRO] Digite uma senha para se registrar!");
(229) format(string, sizeof(string), "Nome:%s/nConta: Sem Registro/nDigite senha !");
(230) ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "Brasil Game G -
Registro", string, "Registrar", "Cancelar");
(231) }
(232) else
(233) {
(234) DOF2_CreatFile(file);
(235) PlayerInfo[playerid][Dinheiro] = 5000;
(236) DOF2_SetInt(file, "Level", PlayerInfo[playerid][Level]);
(237) DOF2_SetInt(file, "Dinheiro", PlayerInfo[playerid][Dinheiro]);
(23 DOF2_SaveFile();
(239) SendClientMessage(playerid, 0x0080FFAA, "[SERVER] Sua conta foi criada com sucesso,
tenha um bom Jogo!");
(240) SpawnPlayer(playerid);
(241) }
(242) }
(243) }
(244) }
(245) return 1;
(246)}
------------------------------------------------------------------
Please people if you have seen this error speaks the line there and what it is.