Moin,
die Error´s:
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : error 029: invalid expression, assumed zero
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : warning 215: expression has no effect
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(791) : error 001: expected token: ";", but found "forward"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(797) : error 017: undefined symbol "cmdtext"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 017: undefined symbol "cmdtext"
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 029: invalid expression, assumed zero
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : error 029: invalid expression, assumed zero
C:\Users\Sinan\Desktop\SAMP SERVER2\gamemodes\Towelie.pwn(798) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Meine Zeilen:
//----------------------------------[AdminChat]-----------------------------------------------
ocmd:admin(playerid, params[]) || ocmd:a(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new string[100], sendername[MAX_PLAYER_NAME], idx;
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, GELB, "NUTZE: (/a)dmin [admin chat]");
return 1;
}
if(sSpieler[playerid][Adminlevel] >= 1)
{
format(string, sizeof(string), "*%d Admin %s[%d]: %s", sSpieler[playerid][Adminlevel], sendername, playerid, result);
}
else if(sSpieler[playerid][pSupporter] >= 1)
{
format(string, sizeof(string), "*%d Supporter %s[%d]: %s", sSpieler[playerid][pSupporter], sendername, playerid, result);
}
else if(sSpieler[playerid][pSupporter] == 6)
{
format(string, sizeof(string), "*%d Admin %s[%d]: %s", sSpieler[playerid][pSupporter], sendername, playerid, result);
}
else return 1;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(sSpieler[i][pSupporter] >= 1 || sSpieler[i][Adminlevel] >= 1)
{
SendClientMessage(i,GELB,string);
}
}
}
}
return 1;
}