SA-MP Forums Archive
ERROR [PICTURE] - 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: ERROR [PICTURE] (/showthread.php?tid=498823)



ERROR [PICTURE] - coop026 - 05.03.2014

I YSU Update, Damage.pwn 'in one of them went from FUNCTION error. Which I need to update the plugin? MOD: Soutchlaw Scavenger and Survive




PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponidbodypart)
{
    if(
IsPlayerOnAdminDuty(playerid))
        return 
0;
    if(!
IsPlayerSpawned(playerid))
        return 
0;
    
SetLastHitBy(damagedidgPlayerName[playerid]);
    
SetLastHitById(damagedidplayerid);
    
DamagePlayer(playeriddamagedidweaponid);
    return 
1;

PHP код:
UpdatePlayerGear(playeridshow 1)
{
    new
        
tmp[ITM_MAX_NAME],
        
itemid;
    
itemid _:GetItemTypeFromHat(GetPlayerHat(playerid));
    if(
IsValidItemType(ItemType:itemid))
    {
        
GetItemTypeName(ItemType:itemidtmp);
        
PlayerTextDrawSetString(playeridGearSlot_Head[UI_ELEMENT_ITEM], tmp);
        
PlayerTextDrawSetPreviewModel(playeridGearSlot_Head[UI_ELEMENT_TILE], GetItemTypeModel,(ItemType:itemid));
        
PlayerTextDrawSetPreviewRot(playeridGearSlot_Head[UI_ELEMENT_TILE], -45.00.0, -45.01.0);
    } 



Re: ERROR [PICTURE] - Avi Raj - 05.03.2014

The error is in the include, not in your script.
Please show us the include.


Re: ERROR [PICTURE] - coop026 - 05.03.2014

Quote:
Originally Posted by Avi Raj
Посмотреть сообщение
The error is in the include, not in your script.
Please show us the include.
HERE:




Re: ERROR [PICTURE] - coop026 - 05.03.2014

UP PLEASE HELP !