Jump to content

Question

Posted

Salut SA-MP.ro, deci cand vreau sa definesc linia aceasta:

[pawn]

if ( KillVehicle[ C_DATA[ i ][ HouseCar ] ] == true )

[/pawn]

O definesc in acest mod:

[pawn]

function KillVehicle( vehicleid, checkplayer )

{

if ( checkplayer == 0 )

{

    DestroyVehicle( vehicleid );

    KillTimer( Timer[ vehicleid ] );

}

else

{

    foreach(Player, i ) if ( !IsPlayerInVehicle( i, vehicleid ) )

    {

    DestroyVehicle( vehicleid );

    KillTimer( Timer[ vehicleid ] );

    }

}

return 1;

}

[/pawn]

Nush de ce nu se rezolva problema, adica tot asa ramane eroare de parca nu ar fi definita..

De ce nu se rezolva?

Poate nu am pus corect unde trebuie, functia am pus=o la sfarsitul scriptului...Nush deja ce sa mai fac :(

AJUTOR SA-MP.ro

4 answers to this question

Recommended Posts

Posted

mai exact ce zice?

[pawn]

(4520) : error 017: undefined symbol "KillVehicle"

(4520) : warning 215: expression has no effect

(4520) : error 001: expected token: ";", but found "]"

(4520) : error 029: invalid expression, assumed zero

(4520) : fatal error 107: too many error messages on one line

[/pawn]

Posted

Incearca asa:

[pawn]new KillVehicle[    MAX_PLAYERS ]    ;[/pawn]

Oo mersi, am pus asta la inceputul scriptului si functia la sfarsit si merge

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.