Jump to content

Question

Posted

Am si eu o intrebare, as vrea sa fac gen functia "SCMF" in care sa nu mai pun format(string, etc, etc.) si dupa SCM(playerid, -1, string).

 Sa pun direct SCMF(playerid, -1, "Numarul generat %d", numargenerat);

Daca poate cineva sa imi dea un tutorial ceva, nu neaparat functia.

  • Upvote 1

2 answers to this question

Recommended Posts

  • 0
Posted

Poti incerca asta:

#define SCMF(%0,%1,%2,%3) format(str, sizeof(str),%2,%3) && SendClientMessage(%0, %1, str)

SCMF(playerid, COLOR, "ID-ul meu este %d", playerid);

// %0 - %3 reprezinta numarul de argumente.

Have fun.

  • Upvote 2
  • 0
Posted
Acum 12 ore, CritteR a spus:

Poti incerca asta:


#define SCMF(%0,%1,%2,%3) format(str, sizeof(str),%2,%3) && SendClientMessage(%0, %1, str)

SCMF(playerid, COLOR, "ID-ul meu este %d", playerid);

// %0 - %3 reprezinta numarul de argumente.

Have fun.

Multumesc boss. A mers perfect.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.