CMD:admins(playerid, params[]){ new AdminCount = 0; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\"); astring[128] = EOS; for(new i = 0; i < MAX_PLAYERS; i++) {if((IsPlayerConnected(i)) && (PlayerData[Level] >= 1)) { format(astring, sizeof(astring), \"%s\\n{FF0000}Jelenleg {cecece}%d {FF0000}Admin van a szerveren\", astring, AdminCount); AdminCount++;}}if(AdminCount == 0) format(astring, sizeof(astring), \"{FF0000}Nincs Admin a Szerveren\");return SendClientMessage(playerid,YELLOW, astring);}
wat.$\" post=\"322586\" timestamp=\"1344257959\"]Hello allvalami baja van az noNam amdin-ab a /admins parancsnak :SParancs:CMD:admins(playerid, params[]){ new AdminCount = 0; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\"); astring[128] = EOS; for(new i = 0; i < MAX_PLAYERS; i++) {if((IsPlayerConnected(i)) && (PlayerData[Level] >= 1)) { format(astring, sizeof(astring), \"%s\\n{FF0000}Jelenleg {cecece}%d {FF0000}Admin van a szerveren\", astring, AdminCount); AdminCount++;}}if(AdminCount == 0) format(astring, sizeof(astring), \"{FF0000}Nincs Admin a Szerveren\");return SendClientMessage(playerid,YELLOW, astring);} elmagyarázzni nem nagyon lehet xd itt egy kép:http://imagerz.com/QFdDWFgEUVMde közbe én is meg Hellboy is adminok voltunk :S [/quote]Most nem tudom, hogy akarod, hogy kilistázza az adminokat, vagy kiírja mennyi admin van fent, vagy ki írja mennyi admin van fent ÉS kilistázza a neveit.
CMD:admins(playerid, params[]){newAdminCount = 0,i = -1,formazas[128 + MAX_PLAYER_NAME + 1];SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\");formazas[0] = EOS;for(;++i < MAX_PLAYERS;){if((IsPlayerConnected(i)) && (PlayerData[Level] > 0)){ if(PlayerData[playerid][Level] > 0) { GetPlayerName(playerid, formazas, MAX_PLAYER_NAME); format(formazas, sizeof(formazas), \"Név: %s | Szint: %d\", formazas, PlayerData[Level]); SendClientMessage(playerid, COLOR_WHITE, formazas); } AdminCount++;}}if((AdminCount > 0) && (PlayerData[playerid][Level] < 1)){format(formazas sizeof(formazas), \"%{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount);SendClientMessage(playerid, -1, formazas);}if(AdminCount == 0)SendClientMessage(playerid, -1, \"{FF0000}Nincs admin a Szerveren\");return SendClientMessage(playerid,YELLOW, astring);}
extreme.pwn(1720) : error 001: expected token: \",\", but found \"sizeof\"extreme.pwn(1720) : error 001: expected token: \";\", but found \")\"extreme.pwn(1720) : error 029: invalid expression, assumed zeroextreme.pwn(1720) : fatal error 107: too many error messages on one line[/pawn]Sor:[pawn]format(formazas sizeof(formazas), \"%{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount);[/pawn]
format(formazas, sizeof(formazas), \"%{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount);
CMD:admins(playerid, params[]){newAdminCount = 0,i = -1,formazas[128 + MAX_PLAYER_NAME + 1]; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\");formazas[0] = EOS; for(;++i < MAX_PLAYERS;){if((IsPlayerConnected(i)) && (PlayerData[Level] > 0)){ if(PlayerData[playerid][Level] > 0) { GetPlayerName(i, formazas, MAX_PLAYER_NAME); format(formazas, sizeof(formazas), \"Név: %s | Szint: %d\", formazas, PlayerData[Level]); SendClientMessage(playerid, COLOR_WHITE, formazas); } AdminCount++;}} if((AdminCount > 0) && (PlayerData[playerid][Level] < 1)){format(formazas, sizeof(formazas), \"%{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount);SendClientMessage(playerid, -1, formazas);} if(AdminCount == 0)SendClientMessage(playerid, -1, \"{FF0000}Nincs admin a Szerveren\"); return SendClientMessage(playerid,YELLOW, astring);}
CMD:admins(playerid, params[]){newAdminCount = 0,i = -1,formazas[128 + MAX_PLAYER_NAME + 1]; SendClientMessage(playerid,YELLOW,\"{33AA33}Online Adminok:\");formazas[0] = EOS; for(;++i < MAX_PLAYERS;){if((IsPlayerConnected(i)) && (PlayerData[Level] > 0)){ GetPlayerName(i, formazas, MAX_PLAYER_NAME); format(formazas, sizeof(formazas), \"Név: %s | Szint: %d\", formazas, PlayerData[Level]); SendClientMessage(playerid, COLOR_WHITE, formazas); AdminCount++;}} if((AdminCount > 0) && (PlayerData[playerid][Level] < 1)){format(formazas, sizeof(formazas), \"%{FF0000}Jelenleg {cecece}%d {FF0000}admin van a szerveren\", AdminCount);SendClientMessage(playerid, -1, formazas);} if(AdminCount == 0)SendClientMessage(playerid, -1, \"{FF0000}Nincs admin a Szerveren\"); return SendClientMessage(playerid,YELLOW, astring);}
Nem tudom miért nem volt jó dialogosan [/quote]mert valamiért nem adott ki mindnekit mindig csak egyet :S