20.03.2011, 09:55
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:
How can I use this in the right way?
Thanks.
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; }
Thanks.