Mivčo 90 Odesláno: 23. Leden, 2013 Share Odesláno: 23. Leden, 2013 Caute mam script #include //------------------------------------------------------------------------------ #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1 //------------------------------------------------------------------------------ #define MAX_PLAYERS_EX 100 //----------------------------------------------------------------- enum INFO_NAME { AdminLevel, } //------------------------------------------------------------------------------ new Informace[MAX_PLAYERS_EX][iNFO_NAME]; dcmd_admins(playerid, params[]) { #pragma unused params new string[2048]; new sendername[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[Level] >= 1 && AccInfo[Hide] == 0) { GetPlayerName(i , sendername, sizeof(sendername)); format(string, sizeof(string),"%s[Level %d]: %s [iD:%i]\n", string,PlayerInfo[Level], sendername,i); } } } ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,".::Online Admins::.",string,"Okey","Cancel"); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(admins, 6, cmdtext); return 1; } stock Jmeno(playerid) { new n[24]; GetPlayerName(playerid,n,24); return n; } new PlayerInfo[ MAX_PLAYERS ]; a mam tam 4 errory pokusil som sa aj upravil ale marne nejdu PS: HELP! Link to comment Share on other sites More sharing options...
0 wifi952 3 Odesláno: 23. Leden, 2013 Share Odesláno: 23. Leden, 2013 1. riadok máš tam #include a nič Link to comment Share on other sites More sharing options...
0 Lerry 15 Odesláno: 23. Leden, 2013 Share Odesláno: 23. Leden, 2013 mě to nejde zobrazit Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 23. Leden, 2013 Author Share Odesláno: 23. Leden, 2013 #include <a_samp> Link to comment Share on other sites More sharing options...
0 EEEE 8 Odesláno: 23. Leden, 2013 Share Odesláno: 23. Leden, 2013 Nemas nadefinovane enumy AccInfo a PlayerInfo mas tam INFO_NAME akurat... proste nechapem naco nieco kopirujes, nieco tam zmenis a potom sam nevies co vlastne mas, co vlastne nemas.... if(PlayerInfo[Level] >= 1 && AccInfo[Hide] == 0) zmen na if(Informace[AdminLevel] >= 1) Link to comment Share on other sites More sharing options...
0 Mivčo 90 Odesláno: 23. Leden, 2013 Author Share Odesláno: 23. Leden, 2013 uz som si to spravil ale na serverymi nejšli prikazy tak som to vymazal Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 23. Leden, 2013 Share Odesláno: 23. Leden, 2013 u publicu OnPlayerCommandText má být return 0; mimochodem. Link to comment Share on other sites More sharing options...
Dotaz
Mivčo 90
Caute mam script
#include
//------------------------------------------------------------------------------
#define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1
//------------------------------------------------------------------------------
#define MAX_PLAYERS_EX 100
//-----------------------------------------------------------------
enum INFO_NAME
{
AdminLevel,
}
//------------------------------------------------------------------------------
new Informace[MAX_PLAYERS_EX][iNFO_NAME];
dcmd_admins(playerid, params[])
{
#pragma unused params
new string[2048];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[Level] >= 1 && AccInfo[Hide] == 0)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"%s[Level %d]: %s [iD:%i]\n", string,PlayerInfo[Level], sendername,i);
}
}
}
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,".::Online Admins::.",string,"Okey","Cancel");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(admins, 6, cmdtext);
return 1;
}
stock Jmeno(playerid)
{
new n[24];
GetPlayerName(playerid,n,24);
return n;
}
new PlayerInfo[ MAX_PLAYERS ];
a mam tam 4 errory pokusil som sa aj upravil ale marne nejdu
PS: HELP!
Link to comment
Share on other sites
6 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now