Hallo,
ich schreibe gerade mein Ticketsystem und habe dies jetzt
ocmd:ra(playerid,params[])
{
new text[128],string[128],string1[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht den Admin Report Chat zu nutzen!");
if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Live Chat!");
if(sscanf(params,"s",text)) return SendClientMessage(playerid,,COLOR_RED,"Syntax{"#FFFFFF"}: /ra [Report-Text]");
format(string,sizeof(string),"[LIVECHAT]: %s: %s",Name(playerid),text);
SendClientMessage(GetPVarInt(playerid,"RPartner"),orange,string);
format(string1,sizeof(string1),"[LIVECHAT]: %s: %s",Name(playerid),text);
SendClientMessage(playerid,orange,string1);
return 1;
}
Ich bekomme aber in dieser Zeile
if(sscanf(params,"s",text)) return SendClientMessage(playerid,,COLOR_RED,"Syntax{"#FFFFFF"}: /ra [Report-Text]");
diesen Error
GnR.p(530) : error 029: invalid expression, assumed zero
GnR.p(530) : warning 215: expression has no effect
GnR.p(530) : warning 215: expression has no effect
GnR.p(530) : error 001: expected token: ";", but found ")"
GnR.p(530) : error 029: invalid expression, assumed zero
GnR.p(530) : fatal error 107: too many error messages on one line
lg