09.12.2012, 14:42
Quote:
|
You are returning 0 in variable success but they are also returning 1.
how can they return both of them |
Let's supose I have a Y_command called heybro
Код:
YCMD:heybro(playerid, params[], help)
{
if (help)
{
return SendClientMessage(playerid, 0xFF0000AA, "Just a greeting.");
}
else
{
SendClientMessage(playerid, -1, "Hey yo!");
}
return 1;
}
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success){
printf("%s: %d", cmdtext, success);
return -1;
}
Код:
/heybro: 0


