Is this a default 0.3.7 bug?
#1

I noticed this yesterday while testing my scripts. The player connect message is only sending for id 0 (using SendClientMessageToAll) i thought its my server's fault but i tried with 4 other gamemodes and still got the same problem, anyone else is having this issue?
Reply
#2

Never happened this thing with me in 0.3.7.
Reply
#3

This is pretty strange. All of my plugins are up to date and yet, i am still having this issue.
Reply
#4

show me the SendClientMessageToAll OnPlayerConnect
Reply
#5

Nevermind, moved the message to user account loading function.
Reply
#6

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Nevermind, moved the message to user account loading function.
Err, sorry for bumping but the problem still exist even if i moved the message to account loading function. Can anyone help? :/

PHP код:
public OnPlayerConnect(playerid)
{
    new
        
x1[E_PLAYERDATA],
        
x2[E_JOBDATA],
        
x3[E_SYNCDATA]
    ;
    
pInfo[playerid] = x1;
    
g_JobData[playerid] = x2;
    
g_SyncInfo[playerid] = x3;
    
g_SpecID[playerid] = INVALID_PLAYER_ID;
    
g_ReporterID[playerid] = INVALID_PLAYER_ID;
    
g_ReportedID[playerid] = INVALID_PLAYER_ID;
    
g_PlayerConvoyID[playerid] = 0;
    
g_PlayerInConvoy[playerid] = 0;
    
g_PrevPos[playerid][0] = 0.0;
    
g_PrevPos[playerid][1] = 0.0;
    
g_PrevPos[playerid][2] = 0.0;
    
g_PrevPos[playerid][3] = 0.0;
    
g_PrevSkin[playerid] = -1;
    
g_PrevClass[playerid] = 0;
    
g_MuteWarns[playerid] = 0;
    
g_LoginAttempts[playerid] = 0;
    
g_RconAttempts[playerid] = 0;
    
g_TargetDialog[playerid] = -1;
    
g_TargetDialogHouse[playerid] = -1;
    
g_RentVehicleDialog[playerid] = -1;
    
g_BuyVehicleDialog[playerid] = -1;
    
g_AdminWarned[playerid] = 0;
    
prev_Int[playerid] = -1;
    
prev_X[playerid] = 0.0;
    
prev_Y[playerid] = 0.0;
    
prev_Z[playerid] = 0.0;
    
g_TimerMute[playerid] = -1;
    
g_TimerJail[playerid] = -1;
    
g_TimerLoadUnload[playerid] = -1;
    
g_TimerSpeedo[playerid] = -1;
    
g_TimerRepairVeh[playerid] = -1;
    
g_TimerRefuelVeh[playerid] = -1;
    
g_TimerTicket[playerid] = -1;
    
g_TimerPullOver[playerid] = -1;
    
g_PlayerChatTime[playerid] = 0;
    
g_PlayerChatMsg[playerid] = "";
    
    
GetPlayerIp(playeridpInfo[playerid][pIP], 16);
    
GetPlayerName(playeridpInfo[playerid][pName], MAX_PLAYER_NAME);
    
    new
        
string[64],
        
query[128]
    ;
    
format(stringsizeof(string), "Player %s has connected to the server."pInfo[playerid][pName]);
     
SendClientMessageToAll(0xAAAAAAFFstring);
    
mysql_format(mysqlquerysizeof(query), "SELECT `nick`,`ip`,`expire` FROM `bans` WHERE `ip`='%e' OR `nick`='%e'"pInfo[playerid][pIP], pInfo[playerid][pName]);
    
mysql_tquery(mysqlquery"CheckBan""i"playerid);
    
    
LoadTextDraws(playerid);
    
TogglePlayerSpectating(playerid1);
    
SetPVarInt(playerid"money"0);
    
SetPVarInt(playerid"score"0);
    
SetPVarInt(playerid"firstspawn"1);
    
    
pInfo[playerid][pText] = Create3DTextLabel("Connected"grey30.040.050.040.001);
    
Attach3DTextLabelToPlayer(pInfo[playerid][pText], playerid0.00.00.5);
    
    
format(stringsizeof(string), "-- Hello and welcome back, %s"pInfo[playerid][pName]);
    
SendClientMessage(playeridlightbluestring);
    
    
mysql_format(mysqlquerysizeof(query), "SELECT `pass`,`id` FROM `users` WHERE `nick`='%e' LIMIT 1"pInfo[playerid][pName]);
    
mysql_tquery(mysqlquery"QueryExecute""ii"result_check_useraccountplayerid);
    
    
g_TimerSpeedo[playerid] = SetTimerEx("SpeedometerInit"3501"i"playerid);
    return 
1;

Reply
#7

Try to use this
Код:
stock SendMessageToAll(color,message[])
{
for(new i=0;i<MAX_PLAYERS;i++)
{
SendClientMessage(i,color,message);
}
}
So now use SendMessageToAll,or just
Код:
#define SendClientMessageToAll SendMessageToAll
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)