[Erros]Comando /editarsalario
#1

Vou ser breve sу tem esses erros:

Comando:

pawn Код:
if(!strcmp(cmd,"/editarsalario",true))
    {
        new Salario[10];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid,-1,"Use /editarsalario [Cargo(1-5)][Salario]");
        Salario = strtok(cmdtext, idx);
        if(!strlen(Salario)) return SendClientMessage(playerid,-1,"Use /editarsalario [Cargo(1-5)][Salario]");
        if(tmp == 1) SalarioCargo1 = Salario;
        if(tmp == 2) SalarioCargo2 = Salario;
        if(tmp == 3) SalarioCargo3 = Salario;
        if(tmp == 4) SalarioCargo4 = Salario;
        if(tmp == 5) SalarioCargo5 = Salario;
        SendClientMessage(playerid,-1,"Salario editado.");
        return true;
    }
Erros:

pawn Код:
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16765) : error 047: array sizes do not match, or destination array is too small
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16767) : error 033: array must be indexed (variable "tmp")
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16767) : error 006: must be assigned to an array
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16768) : error 033: array must be indexed (variable "tmp")
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16768) : error 006: must be assigned to an array
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16769) : error 033: array must be indexed (variable "tmp")
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16769) : error 006: must be assigned to an array
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16770) : error 033: array must be indexed (variable "tmp")
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16770) : error 006: must be assigned to an array
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16771) : error 033: array must be indexed (variable "tmp")
C:\Users\Edilson\Downloads\Brasil Universal Life 1.2\gamemodes\BUL.pwn(16771) : error 006: must be assigned to an array
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
Reply


Messages In This Thread
[Erros]Comando /editarsalario - by Matheus_Ecko - 03.05.2012, 22:09
Re: [Erros]Comando /editarsalario - by steeldark - 03.05.2012, 22:16

Forum Jump:


Users browsing this thread: 2 Guest(s)