Yo.. ich hab da wieder ma n kleines sehr mikriges Problem..
Aber ich raffs einfach nicht xD
Was ist daran falsch:
new Float:Tankstellen[2][3] =
{
{1004.4747,-939.2281,41.7500},
{1943.3885,-1772.6721,12.9603}
};
if(!IsPlayerInRangeOfPoint(playerid,15.0,Tankstellen[2][0],Tankstellen[2][1])){ return SendClientMessage(playerid, COLOR_RED,"Du bist an keiner Tankstelle!");}
&& direkt eine zweite Frage:
Wie mach ich es ambesten, weil derzeit wird der
String ja einfach nur "überschrieben" und es sollen
alle Admins online angezeigt werde
ocmd:admins(playerid, params[])
{
#pragma unused params
new string[256], aname[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(SpielerInfo[i][pAdmin] == 1)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"Supporter: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 2)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"Supporter Plus: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 3)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"Moderator: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 4)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"Administrator: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 5)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"SuperAdmin: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 6)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"ServerManager: %s\n", aname);
}
if(SpielerInfo[i][pAdmin] == 7)
{
GetPlayerName(i, aname, sizeof(aname));
format(string, sizeof(string),"ServerOwner: %s\n", aname);
}
ShowPlayerDialog(playerid, admins, DIALOG_STYLE_MSGBOX,".:: Admins Online: ::.",string, "Close","Close");
}
}
return 1;
}