public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/team", cmdtext, true, 5) == 0) { SendClientMessage(playerid, COLOR_WHITE,"LS-RP Team"); SendClientMessage(playerid, COLOR_WHITE,"Server/Scripter - Luis"); SendClientMessage(playerid, COLOR_WHITE,"Co-Scripter's iViking and Ed"); return 1; } return 0; }
} if(!strcmp(cmdtext, "/team", true)) { SendClientMessage(playerid, COLOR_WHITE,"LS-RP Team"); SendClientMessage(playerid, COLOR_WHITE,"Server/Scripter - Luis"); SendClientMessage(playerid, COLOR_WHITE,"Co-Scripter's iViking and Ed"); return 1; }
Try using this;
Код:
} if(!strcmp(cmdtext, "/team", true)) { SendClientMessage(playerid, COLOR_WHITE,"LS-RP Team"); SendClientMessage(playerid, COLOR_WHITE,"Server/Scripter - Luis"); SendClientMessage(playerid, COLOR_WHITE,"Co-Scripter's iViking and Ed"); return 1; } |
what does it say when you compile it? and do you have COLOR_WHITE defined?
|
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(85) : warning 213: tag mismatch C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(85) : warning 202: number of arguments does not match definition C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "BData" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "HouseData" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "IsNumeric" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "PlayerData" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "ReturnUser" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "VehicleData" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "ret_memcpy" C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LS-RP1.pwn(350) : warning 203: symbol is never used: "strtok"
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(o, 1, cmdtext);
return 1;
}
dcmd_o(playerid, params[])
{
if(!strlen(params)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /o [chat]");
new str[256];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "%s: %s", str, params);
SendClientMessageToAll(COLOR_WHITE, str);
return 1;
}