Jump to content
  • 0

Problema damage pe sever


Thiss

Question

9 answers to this question

Recommended Posts

  • 0
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) {
	printf("playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i");
    return 1;
}

Cel mai simplu e sa faci debug, oare e chemata functia? Daca da, ce valori are? 

Presupun ca ar putea exista un include sau filterscripts care ar putea influenta toata aceasta treaba (in cazul in care functia imi ofera valoriile corecte)

Link to comment
Share on other sites

  • 0
Acum 21 ore, Banditul a spus:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) {
	printf("playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i");
    return 1;
}

Cel mai simplu e sa faci debug, oare e chemata functia? Daca da, ce valori are? 

Presupun ca ar putea exista un include sau filterscripts care ar putea influenta toata aceasta treaba (in cazul in care functia imi ofera valoriile corecte)

Deci pun aia în GM? 

Link to comment
Share on other sites

  • 0
Acum 16 minute, INZRUPE a spus:

Nu scrie dacă ia cineva damage 

Nu apare deloc in consola/serverlog 

playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i

Cu numere?

Ori playeri sunt in acelasi Team ori unul dintre include/filterscripts blocheaza executia. Verifica daca in unul dintre filterscripts ai OnPlayerTakeDamage cu return 1 la sfarsit (si pune return 0 daca exista)

Link to comment
Share on other sites

  • 0
Acum 15 ore, Banditul a spus:

Nu apare deloc in consola/serverlog 

playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i

Cu numere?

Ori playeri sunt in acelasi Team ori unul dintre include/filterscripts blocheaza executia. Verifica daca in unul dintre filterscripts ai OnPlayerTakeDamage cu return 1 la sfarsit (si pune return 0 daca exista)

Da nu apare numerele 

Link to comment
Share on other sites

  • 0
La 13.12.2018 la 22:39, Banditul a spus:

Nu apare deloc in consola/serverlog 

playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i

Cu numere?

Ori playeri sunt in acelasi Team ori unul dintre include/filterscripts blocheaza executia. Verifica daca in unul dintre filterscripts ai OnPlayerTakeDamage cu return 1 la sfarsit (si pune return 0 daca exista)

Nici mașinile nu iau damage dacă sta cineva în ele și tu tragi 

Link to comment
Share on other sites

  • 0
On 12/13/2018 at 10:39 PM, Banditul said:

Nu apare deloc in consola/serverlog 

playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i

Cu numere?

Ori playeri sunt in acelasi Team ori unul dintre include/filterscripts blocheaza executia. Verifica daca in unul dintre filterscripts ai OnPlayerTakeDamage cu return 1 la sfarsit (si pune return 0 daca exista)

Ce sa apara "cu numere" daca tu ai pus doar specifierii, fara parametri dupa , ? :))

 

printf("playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i", playerid, issuerid, amount, weaponid, bodypart);
Link to comment
Share on other sites

  • 0
Acum 16 minute, Lunoxx a spus:

Ce sa apara "cu numere" daca tu ai pus doar specifierii, fara parametri dupa , ? :))

 

printf("playerid: %i issuerid: %i  amount: %f  weaponid: %i  bodypart: %i", playerid, issuerid, amount, weaponid, bodypart);

Clar =)) 

Edit: Aia e, nu poti fi atent la tot ce scrii. O mai dai si in bara

Edited by Banditul
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.