katursis / Pawn.CMD

🚀 Plugin-powered command processor for SA:MP server
MIT License
119 stars 13 forks source link

Execute a command inside another function or cmd #18

Closed Walter-Correa closed 4 years ago

Walter-Correa commented 4 years ago

I want to use a command like OnPlayerCommandText(playerid, "/kick"); I tried CMD:kick(playerid,"1");

But give error on compile.

katursis commented 4 years ago

Use callcmd::kick(playerid, "1");.

Walter-Correa commented 4 years ago

Thank you. Put this on example codes to help everyone else.