formatiere einen string und geb ihn in ner message aus
Ehe man sich versieht, ist die helfen Person auch schon wieder weg:
ocmd:admins(playerid,params[])
{
new name[MAX_PLAYER_NAME];
for(new i=0;i<GetMaxPlayers();i++)
{
GetPlayerName(i,name,sizeof name);
if(IsPlayerAnAdmin(i,1))format(string,sizeof (string),"Probesupporter: %s",name);
else if(IsPlayerAnAdmin(i,2))format(string,sizeof(string),"Supporter: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,3))format(string,sizeof(string),"ProSUP: %s",name);SendClientMessage(playerid,COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,4))format(string,sizeof(string),"Moderator: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,5))format(string,sizeof(string),"SupMOD: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,6))format(string,sizeof(string),"ProMOD: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,7))format(string,sizeof(string),"High Moderator: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,8))format(string,sizeof(string),"Admin: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,9))format(string,sizeof(string),"ProADM:: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,10))format(string,sizeof(string),"High Admin: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,11))format(string,sizeof(string),"Stellv. Projektleiter: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
else if(IsPlayerAnAdmin(i,12))format(string,sizeof(string),"Projektleiter: %s",name);SendClientMessage(playerid, COLOR_GRAD1,string);
return 1;
}
else
{
SendClientMessage(playerid, grau,"Wie du siehst, ist kein Teammitglied online.");
}
}
C:\Dokumente und Einstellungen\Administrator\Desktop\Mods\samp03x_svr_R2_win32\gamemodes\Dubbi.pwn(566) : error 017: undefined symbol "string"
C:\Dokumente und Einstellungen\Administrator\Desktop\Mods\samp03x_svr_R2_win32\gamemodes\Dubbi.pwn(566) : error 017: undefined symbol "string"
C:\Dokumente und Einstellungen\Administrator\Desktop\Mods\samp03x_svr_R2_win32\gamemodes\Dubbi.pwn(566) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\Administrator\Desktop\Mods\samp03x_svr_R2_win32\gamemodes\Dubbi.pwn(566) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Zeile 560:
if(IsPlayerAnAdmin(i,1))format(string,sizeof (string),"Probesupporter: %s",name);