16.09.2009, 21:59
Ok, I wanna add several commands, but Im confused,
How would I make it like another commands under it so I can have multiple commands in a single game mode? Thanks!
Kinda like this? but the code below has an error?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
Kinda like this? but the code below has an error?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
return 0;
}

