Jump to content

[REZOLVAT] Problema compilare.


MasterAdv
 Share

Recommended Posts

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

@

 

Poftim: https://pastebin.com/uLkThfy3

 

Include-urile din libraria YSI le poti lua dupa github.

warning 209: function "@yH_PlayerConnect5" should return a value
D:\pawnc-3.10.7-windows - Copy\pawnc-3.10.7-windows\include\tr.inc(44) : error 021: symbol already defined: "@yH_PlayerConnect5"
D:\pawnc-3.10.7-windows - Copy\pawnc-3.10.7-windows\include\tr.inc(45) : error 021: symbol already defined: "@yH_PlayerConnect5"
 
hook OnPlayerConnect(playerid)
{
    p_treasure_points[playerid] = 0;
    p_level[playerid] = 1;
    p_money[playerid] = 0;
    return 1;
}
Edited by MasterDauTare
Link to comment
Share on other sites

E

 

error 021: symbol already defined: "@yH_PlayerConnect5"

 

Public-ul OnPlayerConnect este deja definit.

Il am in GM, si e sub forma de public, iar in .inc este hook. Fara ala imi merge. Dar trebuie restart la server ca sa spawneze.

Link to comment
Share on other sites

  • Administrator

E

 

Il am in GM, si e sub forma de public, iar in .inc este hook. Fara ala imi merge. Dar trebuie restart la server ca sa spawneze.

Atunci, daca nu-ti merge sub forma de include, de ce nu-l introduci in gm direct? ....

Link to comment
Share on other sites

Atunci, daca nu-ti merge sub forma de include, de ce nu-l introduci in gm direct? ....

Nu merge, am incercat deja.

Rezolvat, dadea unreachable code la linia urmatoare, am sters return de la Treasure.

Edited by MasterDauTare
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...