CMD wont work - 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: CMD wont work (
/showthread.php?tid=348741)
CMD wont work -
thefatshizms - 06.06.2012
hi got a cmd i made in like 1 min lol
its not working maybe because the warning as i think i wrote it wrong lol
pawn Код:
CMD:fix(playerid, params[])
{
new id;
new currentveh;
currentveh = GetPlayerVehicleID(id);
if(sscanf(params,"u",id)) return SendClientMessage(playerid, -1, "USAGE;/fix [id]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "this player isnt connected!");
SetVehicleHealth(id, currentveh, 100);
return 1;
}
C:\Users\iphone\Desktop\0.3e\filterscripts\Event_F s.pwn(104) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
error line
pawn Код:
SetVehicleHealth(id, currentveh, 100);
Re: CMD wont work -
lewismichaelbbc - 06.06.2012
SetVehicleHealth(currentveh, 1000.0);
1000 = full health for a car
Re: CMD wont work -
MadeMan - 06.06.2012
You can see from SA-MP wiki that SetVehicleHealth has only 2 parameters: 'vehicleid' and 'health'
Where did you get the third?
https://sampwiki.blast.hk/wiki/SetVehicleHealth
Re: CMD wont work -
thefatshizms - 06.06.2012
Quote:
Originally Posted by MadeMan
|
lol soz
i was guessing again