Hallo Liebe leute ich war mal wieder zufail um was zu machen undzwar nen umbenennen fehler da kommen diese errors:
(15773) : error 017: undefined symbol "giveplayerid"
(15774) : error 017: undefined symbol "giveplayerid"
(15797) : error 017: undefined symbol "sendername"
(15797) : error 017: undefined symbol "sendername"
(15797) : error 029: invalid expression, assumed zero
(15797) : fatal error 107: too many error messages on one line
ScriptLinien:
if(strcmp(cmd,"/umbenennen",true) == 0)
{
if(SpielerInfo[playerid][Adminlevel] < 7)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_WHITE,"NUTZUNG: /umbenennen [playerid/name] [neuer name] Achtung! Maximale Länge: 16 Zeichen");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid))
{
SendClientMessage(playerid,COLOR_WHITE," Spieler ist nicht Online!");
return 1;
}
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) < 1 || strlen(result) > 16)
{
SendClientMessage(playerid,COLOR_WHITE,"NUTZUNG: /umbenennen [playerid/name] [neuer name] Achtung! Maximale Länge: 16 Zeichen");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string,sizeof(string),"/Accounts/%s.ini",giveplayer);
fremove(string);
format(string,sizeof(string)," AdmCmd: %s hat %s in %s umbenannt!",sendername,giveplayer,result);
ABroadCast(COLOR_LIGHTRED,string,1);
format(string,sizeof(string)," Admin %s hat dich in %s umbenannt!",sendername,result);
SendClientMessage(giveplayerid,COLOR_YELLOW,string);
SetPlayerName(giveplayerid,result);
PlayerUpdate(giveplayerid);
}
return 1;
}
Bitte hilft mir ma jemand sonic meldet sich nichtmehr in skype hehehe.^^