15.08.2016, 20:48
Quote:
You wrong!
I am asking how do i make a command like CMD:command 1(playerid, params[]) { SendClientMessage(playerid, COLOR_WHITE, "Server Commands"); return 1; } When i do compile it i get errors cause i cant make CMD:command 1 Seperate the 1 so it should be CMD:command1 |
PHP код:
CMD:command(playerid, params[])
{
new idx;
if(sscanf(params, "i", idx)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /comand number");
switch(idx)
{
case 1:
{
//Have wrote /command 1
}
//ect....
}
return 1;
}