Help with some erros please?
#1

okay so I cant fix theese things, can anyone tell me why im geting them?

C:\Users\CLaudio\Downloads\codando...sv do 0\gamemodes\mamona.pwn(245) : error 017: undefined symbol "string"
C:\Users\CLaudio\Downloads\codando...sv do 0\gamemodes\mamona.pwn(245) : error 017: undefined symbol "string"
C:\Users\CLaudio\Downloads\codando...sv do 0\gamemodes\mamona.pwn(245) : error 029: invalid expression, assumed zero
C:\Users\CLaudio\Downloads\codando...sv do 0\gamemodes\mamona.pwn(245) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Here is the code that made me get theese errors.
pawn Код:
new cmd[256];
    new tmp[256];
    new giveplayerid, moneys, idx;
    cmd = strtok(cmdtext, idx);
    if(strcmp(cmd, "/xxT", true) == 0 || strcmp(cmd, "/depositar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
         if(IsPlayerInRangeOfPoint(playerid,1.0,1437.5366,-990.4391,999.2109) || IsPlayerInRangeOfPoint(playerid,1.0,1437.5372,-987.2543,999.2183))
            {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "USE: /depositar [quantia]");
                /*format(string, sizeof(string), "  Voce possui $%d em sua conta.", PlayerInfo[playerid][pDinheirodobanco]);
                SendClientMessage(playerid, COLOR_GREY, string);*/

                return 1;
            }
            new cashdeposit = strval(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GREY, "USE: /depositar [quantia]");
                /*format(string, sizeof(string), "  Voce tem R$%d na sua conta", PlayerInfo[playerid][pDinheirodobanco]);
                SendClientMessage(playerid, COLOR_GREY, string);*/

                return 1;
            }
            if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Voce  nгo tem tudo isso na sua conta!");
                return 1;
            }
            GivePlayerMoney(playerid,-cashdeposit);
            new curfunds = PlayerInfo[playerid][pDinheirobanco];
            PlayerInfo[playerid][pDinheirobanco]=cashdeposit+PlayerInfo[playerid][pDinheirobanco];
            SendClientMessage(playerid, COLOR_GREY, "|___ BANCO  INFO ___|");
            format(string, sizeof(string), "  Conta: R$%d", curfunds);
            SendClientMessage(playerid, COLOR_GREY, string);
            format(string, sizeof(string), "  Deposito: R$%d",cashdeposit);
            SendClientMessage(playerid, COLOR_GREY, string);
            SendClientMessage(playerid, COLOR_GREY, "|-----------------------------------------|");
            format(string, sizeof(string), "  Nova conta: R$%d", PlayerInfo[playerid][pDinheirobanco]);
            SendClientMessage(playerid, COLOR_GREY, string);
            return 1;
            }else
            {
            SendClientMessage(playerid, COLOR_GREY, "  Voce nгo esta no banco ou em um Caixa Eletronico!");
            }
        }
        return 1;
    }
des de ja thanks.
Reply
#2

new string[256];

At the top of your command.
Reply
#3

Thanks man It really helped me.
Reply
#4

You don't need 256 cells for that! 64 is more then enough even a bit less. Try to use maximum the amount you need. This way you'll save a lot memory.
Reply
#5

I know I was just bored .-. I was felling too lazy to even look at the script.

Reputation please! To us both
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)