you want everyone on the same server see the message, is it?
where did this tIndex?
and why two loops?
hey Imperyus's , i started project on source IA Julia and i try to make an message that when player enter will show to all server, this is the source , have not problem but how i can make it work that all server will see it . ty for helps
Código PHP:
void ConnectedNotice(int aIndex,char* Message)
{
OBJECTSTRUCT *gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
char TargetNickName[70];
sscanf(Message,"%s",TargetNickName);
int connectmember = gObjGetIndex(TargetNickName);
for(int i = OBJECT_MIN;i <= OBJECT_MAX;i++)
{
for (int i = 6400; i<7400; i++)
{
if(gObj->Connected == 1)
{
Chat.OutGreenMsg(aIndex,"%s Connect to game");
OBJECTSTRUCT *tObj = (OBJECTSTRUCT*)OBJECT_POINTER(tIndex);
if(tObj->Autority == 32)
{
Chat.OutGreenMsg(tIndex,"GM : %s Connect Right Now");
}
}
}
}
you want everyone on the same server see the message, is it?
where did this tIndex?
and why two loops?
Sê Sóbrio...
@konvict
Pelo que entendi ele quer mostrar no server principal e subservers.
Aerocool DS 200 Lite/ Corsair GS600/ ASRock Fatal1ty Z97 Killer/ Intel Core i5 4670K 3,40 GHz 6MB Cache/ Corsair Water Cooler H80i/ Sapphire R9270X Dual-X 2GB OC/ Hyper X Fury 2x8GB 1866Mhz DDR3/ SSD Kingston 120GB/ HDD Samsung 500GB
i want to make a connect notice when gObj->Connected ==1 so its so in the server is nick and all server will see it .. ty for help i think on that and i dont need make two loops this enough
Código PHP:
void ConnectedNotice(int aIndex,char* Message)
{
OBJECTSTRUCT *gObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
char TargetNickName[70];
sscanf(Message,"%s",TargetNickName);
int connectmember = gObjGetIndex(TargetNickName);
for(int i = OBJECT_MIN;i <= OBJECT_MAX;i++)
{
for (int i = 6400; i<7400; i++)
{
if(gObj->Connected == 1)
{
Chat.OutGreenMsg(aIndex,"%s Connect to game");
if(gObj->Autority == 32)
{
Chat.OutGreenMsg(aIndex,"GM : %s Connect Right Now");
}
}
}
}
help ?, please i want to finish that source code
And call ConnectNotice() on gObjCharZeroSet() or any user login functionCódigo:void ConnectedNotice(int aIndex) { char Message[50]; if(gObj[aIndex].Autority != 32) { sprintf(Message,"%s Connect to game",gObj[aIndex].Name); } else { sprintf(Message,"GM: %s Connect right now",gObj[aIndex].Name); } for(int i = 6400; i <= 7400; i++) { if(gObj[i].Connected == 1 && i != aIndex) { Chat.OutGreenMsg(i,Message); } } }
Última edição por Sudeikis; 28-04-2015 às 03:52 PM. Razão: Erro no operador que checa autoridade de GM
the first message is when player connect i dont need Authority == 32 righT?
this is problem " ConnectNotice(); " you have idea what i need to add in the " () " ?
1st message is for when some player connect and 2nd message is when a GameMaster connect.
You must set 'aIndex' of user into ConnectNotice(); parameter, like: ConnectNotice(aIndex);
Há 1 usuários navegando neste tópico. (0 registrados e 1 visitantes)
Marcadores