[pawn] else if (strcmp(cmd, "cloak", true) == 0) // <- here "{" not implemented
SendClientMessage(playerid, COLOR_GREEN, "You have been cloaked!");
SendClientMessage(playerid, COLOR_GREEN, "Your cloak will only be available until your death.");
SendClientMessageToAll(COLOR_GREEN, "%s has cloak activated!");// <- "SendClientMessage" or "SendClientMessageToAll" are not functions for consult a argument or arguments. Only text or strings text wrapped, in thid case a format.
RemovePlayerMarker(playerid);
return 1;
}[/pawn]
Line 1 of that code: have not implemented a key start, so, if you implement:
return 1;
}
Would need a "{" go above where the code starts.
Line 4 of that code: "SendClientMessage" or "SendClientMessageToAll" are not functions for consult a argument or arguments. Only text or strings text wrapped.
Fixed code:
[pawn] else if (strcmp(cmd, "cloak", true) == 0) {
new stmp[256];
SendClientMessage(playerid, COLOR_GREEN, "You have been cloaked!");
SendClientMessage(playerid, COLOR_GREEN, "Your cloak will only be available until your death.");
format(stmp,256,"%s has cloak activated!",gPlayers[playerid]);//<- or other consult player name
SendClientMessageToAll(COLOR_GREEN, stmp);
RemovePlayerMarker(playerid);
return 1;
}[/pawn]
Hope this helps and regards