Jump to content
  • 0

pls help me


Matei02Mihai

Question

Salut. M-am apucat sa lucrez la un gamemode in SAMP si am facut comenzile de heal, kill, tp catre celalalt player si invers si comanda de dat admin. Problema sta in felul urmator: cand ma conectez pe server de pe cele 2 conturi ale mele, comenzile merg foarte bine doar pe un cont. Pe celalat, comenzile au efect doar asupra mea. Adica daca incerc, spre exemplu, sa imi dau admin de pe contul x pe contul y, comanda merge bine, iar daca incerc sa imi dau de pe y pe x, comanda imi da tot pe contul y. O sa vedeti in acest pastebin ca la comanda de dat kill am pus sa se verifice daca killid != playerid, iar acum comanda merge doar de pe un cont, pe celalalt nu mai functioneaza deloc. Ce as putea face?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Pai ce ai facut tu la OnDialogResponse nu este deloc bine.

Problema vine de la acele variabile: tpid , healid
 

De ce? Pai simplu. Pentru ca tu cand ai creat variabilele nu ai setat o valoare.

Incearca acest cod: new selectedID[MAX_PLAYERS];public OnPlayerClickPlayer(playerid, clickedplayer - Pastebin.com

Edited by iSorin[]
Link to comment
Share on other sites

  • 0
Acum 2 ore, iSorin[] a spus:

Pai ce ai facut tu la OnDialogResponse nu este deloc bine.

Problema vine de la acele variabile: tpid , healid
 

De ce? Pai simplu. Pentru ca tu cand ai creat variabilele nu ai setat o valoare.

Incearca acest cod: new selectedID[MAX_PLAYERS];public OnPlayerClickPlayer(playerid, clickedplayer - Pastebin.com

Multumesc foarte mult pentru ajutor.

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.