register_clcmd with parameter UID
Hello,
Is any solution how to do this? I have declared variable uid and i need register_clcmd with value of this variable. If somebody say /referral 123 and variable will be set to this number do anything... |
Re: register_clcmd with parameter UID
You can use it in this way.
PHP Code:
|
Re: register_clcmd with parameter UID
When i change
Code:
if(equali(arg, "/referral 123"))Code:
if(equali(arg, "/referral %d", uid)) |
Re: register_clcmd with parameter UID
Did you try it? If you are wanting to get the 123 into a variable, you need to check that it contains "/referral" first and then parse the string to get the argument after it and convert it to a number.
|
Re: register_clcmd with parameter UID
You can use strtok native to divide the string..
Get the left string which it will be the command And the right is the numbers.. |
Re: register_clcmd with parameter UID
Can you show me example please? Im new and i only start learning pawno and dont have perfect english
|
Re: register_clcmd with parameter UID
Or strbreak too. Anyway, search. In this section you do things by yourself.
|
Re: register_clcmd with parameter UID
Ihave this but have error.
Code:
|
Re: register_clcmd with parameter UID
I tried
Code:
uid = 123 |
Re: register_clcmd with parameter UID
Im trying many changes but i really dont know how to do can somebody help me please?
|
| All times are GMT -4. The time now is 22:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.