Hallo Community
Hab ne Frage wegen dcmd_a hier mein Code :
dcmd_a(playerid,params[])
{
if(Spieler[playerid][alvl] <= 1) {
return SendClientMessage(playerid,COLOR_RED,"You must be a Mod/Admin to be able to write in admin chat");
}
new atext[128];
if(sscanf(params,"u",atext)){
return SendClientMessage(playerid,COLOR_RED,"USAGE: /a [text]");
}
new
name[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Admin (%s) : % s",name,atext);
SendAdminMessage(COLOR_YELLOW,string);
return 1;
}
Was mache ich da falsch ? Also ich gebe Ingame "/a Hallo" und anstatt dass das hier kommt "Admin (Hustler): Hallo" kommt das da "Admin (Hustler): s"
Danke in vorraus