SA-MP Forums Archive
[Ajuda] Com new's desarrumadas. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Com new's desarrumadas. (/showthread.php?tid=452211)



Com new's desarrumadas. - shittt - 20.07.2013

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;
}



Re: Com new's desarrumadas. - WLSF - 20.07.2013

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

Nгo pode fazer isso brodi.


Re: Com new's desarrumadas. - darkxdll - 20.07.2013

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 , :/ ...