[HELP] Errors
#1

How to fix this errors:

Command:
pawn Код:
if(strcmp(cmd, "/zakljucajserver", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 6 || IsPlayerAdmin(playerid))
        {
            if(ServerZakljucan == false)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /zakljucajserver [Lozinka]");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                ServerZakljucan = true;
------ERROR--->     LozinkaServera = tmp; <------------- ERROR LINE
                new pstr[64];
                format(pstr, sizeof pstr, "|NLG|: Server zakljucan! Lozinka: %s", LozinkaServera);
                SendClientMessage(playerid, COLOR_RED, pstr);
                SendAdminMessage(COLOR_ORANGE, "|NLG| Server zakljucan!");
// rest of cmd
Error:
Код:
error 006: must be assigned to an array



And:
Somewhere in OnDialogResponse:
pawn Код:
if(!strcmp(inputtext, LozinkaServera, false))
Код:
error 035: argument type mismatch (argument 2)
I have global variable "LozinkaServera" ://
Reply


Messages In This Thread
[HELP] Errors - by Pooh7 - 15.12.2010, 12:26
Re: [HELP] Errors - by blackwave - 15.12.2010, 12:29
Re: [HELP] Errors - by Pooh7 - 15.12.2010, 12:48
Re: [HELP] Errors - by Scenario - 15.12.2010, 13:48
Re: [HELP] Errors - by Pooh7 - 15.12.2010, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)