Jump to content
  • 0

Params in strcmp


TzAkS

Question

1 answer to this question

Recommended Posts

Cele cu params sunt mai recomandate, mai rapide, mai usor de folosit, strcmp din cate stiu nu suporta sscanf, dar s-ar putea sa mearga la cmdtext...

Pur si simplu schimbi

CMD:comanda( playerid, params[ ] )
in
if( strcmp( cmdtext, "/comanda", true ) == 0 )

si bagi toata comanda sub OnPlayerCommandText, si daca scrie pe undeva in comanda "params", schimbi in "cmdtext" .

Link to comment
Share on other sites

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.