Text in params of DCMD
#1

Hello,

I got a question. How can you let the params[] in dcmd know and save
a text into it? I want to do something like this:

Код:
dcmd(playerid, params[])
{
     if(strlen(params) == 0)
     {
          SendClientMessage(...
          return 1;
     }
     
     if(params[0] == "blabla")
     {
          PlayerInfo[playerid][blabla] = 1;
     }
     else if(params[0] == "bladibladibla")
     {
          PlayerInfo[playerid][bladibladibla] = 2;
     }
     return 1;
}
How can I use this in the right way?

Thanks.
Reply


Messages In This Thread
Text in params of DCMD - by Ihsan-Cingisiz - 20.03.2011, 09:55
Re: Text in params of DCMD - by JamesC - 20.03.2011, 10:30
Re: Text in params of DCMD - by Ihsan-Cingisiz - 20.03.2011, 10:31

Forum Jump:


Users browsing this thread: 2 Guest(s)