Jump to content

[Cerere tutorial] Cum creez o noua functie .inc


Stark.sys

Recommended Posts

Descriere tutorial: Salut, am si eu o mica intrebare. Cum pot crea o noua functie .inc ?

Un mic exemplu. Deci am codul asta [pawn]stock SendMessageToAdmin(color, text[])

{

for(new i = 0; i {

if(IsPlayerAdmin(i) || AccInfo[pAdmin] >= 1)

{

SendClientMessage(i, color, text);

}

}

return 1;

}

[/pawn] si as dori sa il fac in format .inc,  este posibil ? iar cand dau #include <nume functie> sa pot folosi functia asta SendMessageToAdmin(); "de exemplu".;>

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

da, dar cand execut sendadminmessage(color, "str"); zice ca are eroare :-? dece? 

"Mulţi programatori buni fac programare nu pentru că se aşteaptă să câştige bani sau să fie lăudaţi de public, ci pentru că e amuzant să programezi." - Linus Torvalds

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.