strcmp to ysi
#7

Quote:

strcmp to y_cmd
1. strcmp commands are all held in the OnPlayerCommandText callback, and will look like so:
if(strcmp(cmdtext, "/command", true) == 0)
{
// Code for command
return 1;
}

2. Take the code from part 1 and place it in a function like so, outside of all callbacks:
YCMD:command(playerid, params[], help)
{
if(help)
{
SendClientMessage(playerid, 0xFF0000AA, "Write a short help message here.");
}
else
{
// Code for command
}
return 1;
}
Then delete all the code from part 1.

Ye but whear is params i can't to id :/ relly pls some one to help PLS :/
Reply


Messages In This Thread
strcmp to ysi - by markoku - 04.03.2013, 18:52
Re: strcmp to ysi - by markoku - 04.03.2013, 19:55
Re: strcmp to ysi - by Denying - 04.03.2013, 19:59
Re: strcmp to ysi - by markoku - 04.03.2013, 20:15
Re: strcmp to ysi - by markoku - 05.03.2013, 18:47
Re: strcmp to ysi - by MP2 - 05.03.2013, 18:58
Re: strcmp to ysi - by markoku - 05.03.2013, 19:21

Forum Jump:


Users browsing this thread: 2 Guest(s)