Guten Morgen,
Wollt mal fragen ob mir jemand dabei helfen kann und zwar habe ich hier so was gemacht
if(dialogid == SupTicketSchreiben)
{
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmdtext, cmd, idx;
if(JustReported[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "* [Support] Bitte warte 30 Sekunden bis du den Nächsten Support schreiben kannst!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /sup [Text]");
return 1;
}
new stringrp[200];
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(stringrp, sizeof(stringrp), "Support von: [ID:%d]%s", playerid, sendername);
ABroadCast(0xE19898AA,stringrp,1);
format(stringrp, sizeof(stringrp), "Meldung: %s", (result));
ABroadCast(0xE19898AA,stringrp,1);
ABroadCast(0xA04C4CAA,"Tippe '/ar [SpielerID]' or '/tr [SpielerID]'",1);
SendClientMessage(playerid, 0x96C184AA, "** Dein Support wurde an alle Admins gesendet die Online sind.");
JustReported[playerid] = 1;
PlayerNeedsHelp[playerid] = 1;
SetTimerEx("ReportReset", 300000, false, "i", playerid);
return 1;
}
Nur ich bekomme diese Fehler Meldung
ZitatAlles anzeigenC:\Users\Marcel\Desktop\Marcel.pwn(37377) : error 035: argument type mismatch (argument 1)
C:\Users\Marcel\Desktop\Marcel.pwn(37378) : error 028: invalid subscript (not an array or too many subscripts): "cmdtext"
C:\Users\Marcel\Desktop\Marcel.pwn(37378) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Desktop\Marcel.pwn(37378) : error 029: invalid expression, assumed zero
C:\Users\Marcel\Desktop\Marcel.pwn(37378) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
mfg