[Ajuda] Como resolver esse erros?
#1

Por favor nгo digam que eu sou burro ou coisa do tipo, quem nгo quiser ajudar, nгo ajuda

7580:error 028: invalid subscript (not an array or too many subscripts): "Logged"
7580:warning 215: expression has no effect
7580:error 001: expected token: ";", but found "]"
7580:error 029: invalid expression, assumed zero
7580:fatal error 107: too many error messages on one line

esse foram 4 erros que apareceram quando passei um codigo do FS para o GM.

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayerProps[playerid] = 0;
    Logged[playerid] = 0;
    EarningsForPlayer[playerid] = 0;
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    for(new propid; propid < PropertiesAmount; propid++)
    {
        if(PropInfo[propid][PropIsBought] == 1)
        {
            if(strcmp(PropInfo[propid][PropOwner], pName, true)==0)
            {
                EarningsForPlayer[playerid] += PropInfo[propid][PropEarning];
                PlayerProps[playerid]++;
            }
        }
    }
    #if ENABLE_LOGIN_SYSTEM == 0
    if(PlayerProps[playerid] > 0)
    {
        new str[128];
        format(str, 128, "Vocк tem atualmente %d propriedades. use: /minhasprops para saber as info de suas propriedades.", PlayerProps[playerid]);
        SendClientMessage(playerid, 0x99FF66AA, str);
    }
    #endif
Reply
#2

Deleta essa linha

Logged[playerid] = 0;
Reply
#3

se deletar da outros errors

pawn Код:
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : error 001: expected token: ";", but found ")"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : error 029: invalid expression, assumed zero
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : warning 215: expression has no effect
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : error 001: expected token: ";", but found ")"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : error 029: invalid expression, assumed zero
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : warning 215: expression has no effect
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9418) : error 021: symbol already defined: "cmd"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9419) : error 021: symbol already defined: "idx"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)