Hall habe hier einen kleinen schnippsel leider noch errors drin :
if(strcmp(cmdtext, "/report", true) == 0)
{
new sendername[120];
if(IsPlayerConnected(playerid))
{
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,0x828282FF, " /report [text]");
return 1;
}
format(string, sizeof(string), "Report from %s: %s", sendername, (result));
ABroadCast(COLOR_YELLOW,string,1);
log(string); // Log-Funktion aufrufen
}
return 1;
}
was fehlt da noch das sind die errors
E:\.pwn(1137) : error 017: undefined symbol "idx"
E:\.pwn(1139) : error 017: undefined symbol "idx"
E:\.pwn(1139) : warning 215: expression has no effect
E:\.pwn(1141) : error 017: undefined symbol "idx"
E:\.pwn(1143) : error 017: undefined symbol "idx"
E:\.pwn(1145) : error 017: undefined symbol "idx"
E:\.pwn(1146) : error 017: undefined symbol "idx"
E:\.pwn(1146) : warning 215: expression has no effect
E:\.pwn(1148) : error 017: undefined symbol "idx"
E:\.pwn(1154) : error 017: undefined symbol "string"
E:\.pwn(1154) : error 017: undefined symbol "string"
E:\.pwn(1154) : error 029: invalid expression, assumed zero
E:\.pwn(1154) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.
diese sind alle in dem schnippsel oben