Hey Leute,
Ich habe ein merkwürdiges Problem mit meinem /report command:
Unswar wird reason gar nicht angezeigt, wenn ich es angeben, der rest aber wie gewohnt:
if(strcmp(strget(cmdtext, 0), "/report",true) == 0)
{
new reason = strval(strget(cmdtext,2));
new pID = strval(strget(cmdtext,1));
new Tplayer[MAX_PLAYER_NAME];
new rep[128];
new rep2[64];
if(!IsPlayerConnected(pID)) {
return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID");
}
GetPlayerName(pID,Tplayer,sizeof(Tplayer));
format(rep,sizeof(rep),"%s has reported (ID %d)",Tplayer,pID);
SendAdminMessage(COLOR_YELLOW,rep);
format(rep2,sizeof(rep2),"[Reason: %s]",reason);
SendAdminMessage(COLOR_YELLOW,rep2);
return 1;
}