SA-MP Forums Archive
Ownership Problem[solution please!] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ownership Problem[solution please!] (/showthread.php?tid=366556)



Ownership Problem[solution please!] - Akcent_Voltaj - 06.08.2012

k i got a fs from a friend... so look i have 345 cars and 53 cars i added.. but i added somecars and my Jester isnt mine anymore..

PHP код:
public IsAnOwnableCar(vehicleid)
{   
//29 319
    
if(vehicleid >= 346 && vehicleid <= 399) { return 1; } //53
    
return 0;

how can i fix it??


Re: Ownership Problem[solution please!] - Tigerkiller - 07.08.2012

try

pawn Код:
public IsAnOwnableCar(vehicleid)
{
    //29 219
    if(IsValidVehicle(vehicleid)) return 1;
    return 0;
}
#Not Tested


Re: Ownership Problem[solution please!] - Akcent_Voltaj - 07.08.2012

what does it do?


Re: Ownership Problem[solution please!] - Akcent_Voltaj - 07.08.2012

i dont get this i buy sell to dealer and player i have normal money when i go to fill gas the moneys goes up.. same for everything i give rep i want the dealer to be like gm..