error 010: invalid function or declaration & warning 235: public function lacks forward declaration (symbol "Drag")
#1

error 010: invalid function or declaration
Код:
public TackleCrackControl(giveplayerid){
//if(gteam[giveplayerid]!=Team_Jail){
TogglePlayerControllable(giveplayerid, 1);
SendClientMessage(giveplayerid, COLOR_YELLOW, "(INFO) You can now walk again.");
}
Tackled[giveplayerid]=0;
}
warning 235: public function lacks forward declaration (symbol "Drag")
Код:
public Drag(giveplayerid, playerid)
{
         new Float:x, Float:y, Float:z;
         GetPlayerPos(giveplayerid, x, y, z);
         SetPlayerPos(playerid, x, y+1, z);
         SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
         SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
}
Reply
#2

To your Warning 235:

Add
pawn Код:
forward Drag(giveplayerid, playerid);
Above your public lines.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)