OnPlayerConnect Help
#1

I want to make like this :
Код:
if(AccountInfo[TARGETID][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string2,sizeof string2,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
}
i have command to put "EE" to 1 & 0.
But when it is on 1 it doesnt show me that player joined.. neiter on 0

i have all data function and added ee.
Reply
#2

show us the accountinfo var + enum(s), please
Reply
#3

Quote:
Originally Posted by Naruto4
I want to make like this :
Код:
if(AccountInfo[TARGETID][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string2,sizeof string2,"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
}
i have command to put "EE" to 1 & 0.
But when it is on 1 it doesnt show me that player joined.. neiter on 0

i have all data function and added ee.
Consider.. You use aEE variable, but you say that you have to change EE..
Reply
#4

Код:
enum aInfo
{
    aPassword[128],
    aLogged,
    aEE,
    aAdmin,
    aFaction,
};
new AccountInfo[MAX_PLAYERS][aInfo];
Reply
#5

-
Reply
#6

Quote:
Originally Posted by Martin_M
Код:
if(AccountInfo[playerid][aEE] == 1) 
{
new string2[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string2,sizeof(string2),"%s has joined the server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string2);
return 1;
}
Reply
#7

sorry, but Martin_M, wth are you up to? :S -.-
Reply
#8

Quote:
Originally Posted by lrZ^ aka LarzI
sorry, but Martin_M, wth are you up to? :S -.-
There was my mistake. I'm confusing now a little bit and through negligence i make double post. Sorry.
Reply
#9

oh, ok xP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)