05.07.2016, 11:20
I have this code
but i seen the wiki all is good what's the problem ? Please help.
PHP код:
CMD:stabalize(playerid, params[])
{
SendAdminText(playerid, "/stabalize", params);
new cibleid, Float:heal;
if(sscanf(params, "u", cibleid)) return SendClientMessage(playerid, COLOR_GREY,"Usage: /stabalize [id]");
//if(playerid == cibleid) return SendClientMessage(playerid, COLOR_GREY, "You can't stabalize yourself.");
if(!IsMedic(playerid))
{
SendClientMessage(playerid, COLOR_GREY,"You are not a LSFMD.");
}
GetPlayerHealth(cibleid, heal);
SetPlayerHealth(cibleid, 24501441);
SendClientMessage(playerid, COLOR_GREY,"The patient is now stabalize for 15 seconds.");
SetTimerEx("StopStabalizeHealth", 15000, false, "i", cibleid);
return 1;
}
foward StopStabalizeHealth(cibleid);
public StopStabalizeHealth(cibleid)
{
SetPlayerHealth(cibleid, 15);
}
Код:
C:\Users\mickael\Desktop\LGRP\gamemodes\UGRP.pwn(8000) : error 010: invalid function or declaration C:\Users\mickael\Desktop\LGRP\gamemodes\UGRP.pwn(8001) : warning 235: public function lacks forward declaration (symbol "StopStabalizeHealth")