CMD wont work
#1

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);
Reply
#2

SetVehicleHealth(currentveh, 1000.0);

1000 = full health for a car
Reply
#3

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
Reply
#4

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
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
lol soz i was guessing again
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)