[Ajuda] Com new's desarrumadas.
#1

Bom pessoal ja arrumei uns errors com a new's , quando eu arrumo um aparece outro ,agora tem esse aqui


Como estб a new

pawn Код:
new RemoveNeon;
Ja tentei [MAX_PLAYERS] nгo funfo ...


Linha

pawn Код:
RemoveNeon(Player[playerid][VehicleCreated]);
Errors :

pawn Код:
error 012: invalid function call, not a valid address
 warning 215: expression has no effect
 error 001: expected token: ";", but found ")"
 error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Stock

pawn Код:
stock RemoveNeon(playerid)
{
    new vid = GetPlayerVehicleID(playerid);
    VehicleInfo[vid][NeonStatus] = false;
    DestroyObject(VehicleInfo[vid][Neon][0]);
    DestroyObject(VehicleInfo[vid][Neon][1]);
    DestroyObject(VehicleInfo[vid][Neon][2]);
    DestroyObject(VehicleInfo[vid][Neon][3]);
    DestroyObject(VehicleInfo[vid][Neon][4]);
    DestroyObject(VehicleInfo[vid][Neon][5]);
    DestroyObject(VehicleInfo[vid][Neon][6]);
    DestroyObject(VehicleInfo[vid][Neon][7]);
    DestroyObject(VehicleInfo[vid][Neon][8]);
    DestroyObject(VehicleInfo[vid][Neon][9]);
    DestroyObject(VehicleInfo[vid][Neon][10]);
    DestroyObject(VehicleInfo[vid][Neon][11]);

    VehicleInfo[vid][Neon][0] = 0;
    VehicleInfo[vid][Neon][1] = 0;
    VehicleInfo[vid][Neon][2] = 0;
    VehicleInfo[vid][Neon][3] = 0;
    VehicleInfo[vid][Neon][4] = 0;
    VehicleInfo[vid][Neon][5] = 0;
    VehicleInfo[vid][Neon][6] = 0;
    VehicleInfo[vid][Neon][7] = 0;
    VehicleInfo[vid][Neon][8] = 0;
    VehicleInfo[vid][Neon][9] = 0;
    VehicleInfo[vid][Neon][10] = 0;
    VehicleInfo[vid][Neon][11] = 0;
}
Reply
#2

Se tб criando funзхes com o mesmo nome das variбveis ?

Nгo pode fazer isso brodi.
Reply
#3

Que estranho o cara ... usando new RemoveNeon e ao mesmo tempo criando a funзгo RemoveNeon '-'
Nгo entendo como as coisas chegaram a este ponto .

#off : Willian , mals ai eu fiquei sem internet por uns 5 dias , :/ ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)