Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: elemental. poslato Avgust 05, 2012, 20:21:31 POSLE PODNE

Naslov: [Pomoć] - 5 Errora
Poruka od: elemental. poslato Avgust 05, 2012, 20:21:31 POSLE PODNE
Skripta koju koristim: Od 0
Detaljan opis problema: Skriptao sam komandu /oprema, ali mi na dialogu errore izbacuje:

IC_war.pwn(1957) : error 035: argument type mismatch (argument 2)//sredio
IC_war.pwn(1962) : error 035: argument type mismatch (argument 2)//sredio
IC_war.pwn(1967) : error 035: argument type mismatch (argument 2)//sredio
IC_war.pwn(1972) : error 035: argument type mismatch (argument 2)//sredio
IC_war.pwn(2106) : error 040: duplicate "case" label (value 7)


Citatcase 7: {//Turn Off
            format(string,sizeof(string),"Admin %s je ugasio server.",GetName(playerid));
            SCMToAll(-1,string);
            SendRconCommand("exit");
            }
            }
         }
      case RCON_DIALOG+1:
         {
         new string[32];
         format(string, 16, "hostname %s",inputtext);
         SendRconCommand(string);
         }
Naslov: Odg: [Pomoć] - 5 Errora
Poruka od: ...Neno... poslato Avgust 05, 2012, 23:52:59 POSLE PODNE
#define RCON_DIALOG+1

ako nemas

edit:nevjerujem da je to nemas taj error,cek..

EDIT OPET:Ajd probaj case 8 RCON_DIALOG+1:
Naslov: Odg: [Pomoć] - 5 Errora
Poruka od: elemental. poslato Avgust 05, 2012, 23:57:54 POSLE PODNE
Novi errori, stavio sam ovako:
Editana linija boldana

Citatcase 7: {//Turn Off
            format(string,sizeof(string),"Admin %s je ugasio server.",GetName(playerid));
            SCMToAll(-1,string);
            SendRconCommand("exit");
            }
        }
      case RCON_DIALOG+1:
         {
         new string[32];
         format(string, 16, "hostname %s",inputtext);
         SendRconCommand(string);
         }

IC_war.pwn(2101) : error 014: invalid statement; not in switch
IC_war.pwn(2101) : error 001: expected token: ";", but found ":"
IC_war.pwn(2101) : error 029: invalid expression, assumed zero
IC_war.pwn(2101) : fatal error 107: too many error messages on one line


A evo linija 2101:
  case RCON_DIALOG+1: