06.07.2015, 21:29
OK I did this
The errors show on this line
ERROR :
So either im blind and I'm missing something , either im drunk..
Код:
CMD:votekick(playerid, params[])
{
if(pInfo[playerid][Helper] >= 1)
{
if(VoteOn) return SendClientMessage(playerid, 0xCC0000AA, "There's already a vote going on!");
new Target, reason[64];
if(sscanf(params, "rS(None)[64]", Target, reason)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /votekick <playerid> <raason(optional)>");
VoteOn = true;
VoteAgainst = Target;
format(VoteReason, sizeof(VoteReason), "%s", reason);
VoteTimer = SetTimer("VoteEnd", 60000, false);
new string[128];
format(string, sizeof(string), "*"COL_WHITE"* %s votekick has started against%s for %s",Name(Target), VoteReason);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
}
else return SendClientMessage(playerid, COLOR_RED,"You have to be level 1 to use that command!");
return 1;
}
Код:
format(string, sizeof(string), "*"COL_WHITE"* %s has banned %s for %s",Name(Target), VoteReason);
Код:
error 001: expected token: "-string end-", but found "-identifier-"


