HELP -Car fixing system - 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: HELP -Car fixing system (
/showthread.php?tid=327774)
HELP -Car fixing system -
Subwoofer - 22.03.2012
So im sitting here with a problem, i want to make car fixing system, when i make it and try to use, then it doesnt do anything... The system looks like this:
PHP код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
SetVehicleHealth(playerid, 1000);
return 1;
}
Re: HELP -Car fixing system -
Daddy Yankee - 22.03.2012
pawn Код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
return 1;
}
Re: HELP -Car fixing system -
Bogdan1992 - 22.03.2012
PHP код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid)); // This repairs the visual damage
return 1;
}
Re: HELP -Car fixing system -
Subwoofer - 23.03.2012
Quote:
Originally Posted by Daddy Yankee
pawn Код:
if (strcmp("/fix", cmdtext, true, 10) == 0) { SetVehicleHealth(GetPlayerVehicleID(playerid), 1000); return 1; }
|
Still didnt work :/. I want to learn advanced scripting for commands but cant find anywhere tutorial.
Re: HELP -Car fixing system -
Subwoofer - 23.03.2012
Quote:
Originally Posted by Bogdan1992
PHP код:
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid)); // This repairs the visual damage
return 1;
}
|
Thanks, it worked
. Rep+ for you
Re: HELP -Car fixing system -
eLeCTroNNN - 23.03.2012
Thanks, it worked. Thanks!