Hollo,
ich habe einen Error in meinem Bannsystem, den ich nicht rausbekomme.
if (strcmp("/ban", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pAdmin] >= 3)
{
new giveplayerid, reason[50], params[128];
if(sscanf(params, "us", giveplayerid, reason))
{
new name[MAX_PLAYER_NAME], givenname[MAX_PLAYER_NAME], germangivenstring[100], englishgivenstring[100], germanallstring[100], englishallstring[100];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, givenname, sizeof(givenname));
format(germangivenstring,sizeof(germangivenstring),"Du wurdest von %s gebannt. Grund: %s",name,reason);
format(englishgivenstring,sizeof(englishgivenstring),"%s has you banned. Reason: %s",name,reason);
SendPlayerMessage(giveplayerid, RED, germangivenstring, englishgivenstring);
format(germanallstring,sizeof(germanallstring),"%s hat %s gebannt. Grund: %s",name,givenname,reason);
format(englishallstring,sizeof(englishallstring),"%s has %s banned. Reason: %s",name,givenname,reason);
SendAllPlayerMessage(RED, germanallstring, englishallstring);
pInfo[giveplayerid][pBanned] = 1;
pInfo[giveplayerid][pBanReason] = reason;
}
else
{
SendPlayerMessage(playerid, RED, "/ban [ID/Name] [Grund]", "/ban [ID/NAME] [Reason]");
}
}
else
{
SendPlayerMessage(playerid, RED, "Du bist kein Admin!", "You're not an admin!");
}
return 1;
}
A:\Mark\Desktop\Stunt\gamemodes\gamemode.pwn(345) : error 047: array sizes do not match, or destination array is too small
Danke im vorraus.