GTAMulti.com - Türkiye'nin Türkçe GTA Sitesi

OnPlayerGiveDamage fonksiyonunun çalışmaması. (Sürüm:0.3.7-R2)

Başlatan aliazad34, 06 Temmuz 2023, 21:37:24

« önceki - sonraki »

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

aliazad34

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
if(pData[damagedid][pGodMode] > 0) return false;
return 1;
}
Böyle bir koşul eklememe rağmen ne yaptıysam sürekli hasar alabiliyorum bunu nasıl çözebilirim?


ispogue

PAWN Kodu: Seç
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    if (pData[playerid][pGodMode] > 0) return 0;
    return 1;
}


HasanEfe

arkadaşın üstte attığı kod weapon-config includesini kullanıyorsan onu kullanman lazım, eğer kullanmıyosan compile edince ne hatası verdiğini söylermisin


aliazad34

tek başına weapon-config.inc kurdum fakat file is fuction not found diye bir hata almaya başladım derleyiciden, yüklemeden önce modum düzgün çalışıyordu. Bunu nasıl çözebilirim?
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2140) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2140) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2339) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2339) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2353) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2353) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2366) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2366) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2411) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2411) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2600) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2600) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2628) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2628) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2629) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2629) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2631) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2656) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2656) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2708) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2712) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2712) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2751) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found none ("_")
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2819) : warning 217: loose indentation
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2876) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(2876) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3007) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3050) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3062) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3076) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3076) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3078) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3104) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3104) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3309) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3309) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3337) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3337) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3659) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3693) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3790) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3803) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3924) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(3924) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4035 -- 4040) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4260) : warning 217: loose indentation
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4703) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4703) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4705) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4705) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4711) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4711) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4713) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4713) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4718) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4718) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4728) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4728) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4731) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4731) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4735) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4735) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4738) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4738) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4742) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4742) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4744) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4744) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4746) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4746) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4750) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4750) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4752) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4752) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4755) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4755) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4757) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4757) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4759) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4759) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4761) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4761) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4769) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4811) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4811) : warning 202: number of arguments does not match definition
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4825) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4958) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(4978) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5046) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5052) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5352) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5352) : warning 239: literal array/string passed to a non-const parameter
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5367) : warning 213: tag mismatch: expected tag "E_SYNC_TYPES", but found "bool"
C:\Users\EMA\Desktop\Deadmatch\pawno\include\weapon-config.inc(5367) : warning 202: number of arguments does not match definition
Son düzenlenme: 09 Temmuz 2023, 02:51:06 aliazad34

ispogue


HKI

weapon-config ile beraber SKY veya Pawn RakNet'i de kurman gerek.

¡La vida es una sola!