Hallo,
Hier die Zeilen:
if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
{
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,ORANGE, "BENUTZUNG: (/a)dmin [admin chat]");
return 1;
}
format(string, sizeof(string), "*%d Admin %s: %s", PlayerInfo[playerid][pAdmin], sendername, result);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SendAdminMessage(COLOR_ORANGE, string);
}
printf("Admin %s: %s", sendername, result);
}
else
{
SendClientMessage(playerid,ROT,"Du bist kein Admin!");
}
return 1;
}
Die Error´s
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(658) : error 017: undefined symbol "cmd"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(662) : error 017: undefined symbol "sendername"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(662) : error 017: undefined symbol "sendername"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(662) : error 029: invalid expression, assumed zero
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\first.pwn(662) : 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.
PS: es soll den /a chat zeigen. (Admin chat) ..