sendclientmessagetoall doesn't work
#1

PHP код:
format(g_szBuffersizeof g_szBuffer,
                            
"UPDATE `"MySQL_PLAYERS_TABLE"` SET \
                            \
                                `SubLeader` = '%i' \
                            \
                            WHERE pName = '%s'"
,
                            
fChosen[playerid],
                            
id);
                            
mysql_query(g_szBuffer);
                            
format(frakcija[fChosen[playerid]][fLeader], MAX_PLAYER_NAME+1"%s"id);
                            
format(zinutesizeof(zinute), "{d8a9ff}•{ffffff} lyderiш vadovas {d8a9ff}%s{ffffff} paskyrл naujаjб „{d8a9ff}%s{ffffff}“ frakcijos sub-lyderб {d8a9ff}%s{ffffff} !"getPlayerName(playerid), frakcija[fChosen[playerid]][fName], id);
                            
SendClientMessageToAll(-1zinute);
                            
updateFractionLabel(fChosen[playerid]);
                            
saveFractions(fChosen[playerid]);
                            
fAction[playerid] = -1;
                            
fChosen[playerid] = -1
I don't see the message in the server, the mysql part works perfectly.
Reply
#2

Please help
Reply
#3

PHP код:
new id[24];
                    if(
sscanf(inputtext,"s[24]"id))
                    {
                        
SendError(playerid"laukelis nebuvo pilnai uћpildytas !");
                        
fAction[playerid] = 14;
                        
format(zinutesizeof(zinute), "Redaguojama „%s“ frakcija"frakcija[fChosen[playerid]][fName]);
                        
format(g_szBuffersizeof(g_szBuffer), "{ffffff}Redaguojama „{d8a9ff}%s{ffffff}“ frakcija:\n \n    {d8a9ff}•{ffffff} atliekamas veiksmas %s,\n    {d8a9ff}•{ffffff} veiksmo informacija %s"frakcija[fChosen[playerid]][fName], getActionEdit(playerid), setActionInfo(playerid));
                        
ShowPlayerDialog(playerid855DIALOG_STYLE_LISTzinuteg_szBuffer"Keisti""Atgal");
                        return 
1;
                    }
                    if(!
strcmp(getPlayerName(playerid), idfalse))
                    {
                        
SendError(playerid"savęs lyderiu nustatyti negalite !");
                        
fAction[playerid] = 14;
                        
format(zinutesizeof(zinute), "Redaguojama „%s“ frakcija"frakcija[fChosen[playerid]][fName]);
                        
format(g_szBuffersizeof(g_szBuffer), "{ffffff}Redaguojama „{d8a9ff}%s{ffffff}“ frakcija:\n \n    {d8a9ff}•{ffffff} atliekamas veiksmas %s,\n    {d8a9ff}•{ffffff} veiksmo informacija %s"frakcija[fChosen[playerid]][fName], getActionEdit(playerid), setActionInfo(playerid));
                        
ShowPlayerDialog(playerid855DIALOG_STYLE_LISTzinuteg_szBuffer"Keisti""Atgal");
                        return 
1;
                    }
                    
format(g_szBuffersizeof(g_szBuffer), "SELECT `pName` FROM `"MySQL_PLAYERS_TABLE"` WHERE pName = '%s' LIMIT 1"id);
                    
mysql_query(g_szBuffer);
                    
mysql_store_result();
                    if(
mysql_num_rows() == 1)
                    {
                        
format(g_szBuffersizeof(g_szBuffer), "SELECT `SubLeader` FROM `"MySQL_PLAYERS_TABLE"` WHERE pName = '%s' LIMIT 1"id);
                        
mysql_query(g_szBuffer);
                        
mysql_store_result();
                        new 
Leading mysql_fetch_int();
                        if(
Leading 0)
                        {
                            
SendError(playerid"ћaidėjas jau vadovauja frakcijai !");
                            
fChosen[playerid] = -1;
                            
fAction[playerid] = -1;
                        }
                        else
                        {
                            
format(g_szBuffersizeof g_szBuffer,
                            
"UPDATE `"MySQL_PLAYERS_TABLE"` SET \
                            \
                                `SubLeader` = '%i' \
                            \
                            WHERE pName = '%s'"
,
                            
fChosen[playerid],
                            
id);
                            
mysql_query(g_szBuffer);
                            
format(frakcija[fChosen[playerid]][fLeader], MAX_PLAYER_NAME+1"%s"id);
                            
format(zinutesizeof(zinute), "{d8a9ff}•{ffffff} lyderių vadovas {d8a9ff}%s{ffffff} paskyrė naująjį „{d8a9ff}%s{ffffff}“ frakcijos sub-lyderį {d8a9ff}%s{ffffff} !"getPlayerName(playerid), frakcija[fChosen[playerid]][fName], id);
                            
SendClientMessageToAll(-1zinute);
                            
updateFractionLabel(fChosen[playerid]);
                            
saveFractions(fChosen[playerid]);
                            
fAction[playerid] = -1;
                            
fChosen[playerid] = -1;
                            return 
1;
                        }
                        
mysql_free_result();
                    }
                    else
                    {
                        
SendError(playerid"duomenų bazėje toks ћaidėjas neegzistuoja !");
                        
fAction[playerid] = 15;
                        
format(zinutesizeof(zinute), "Redaguojama „%s“ frakcija"frakcija[fChosen[playerid]][fName]);
                        
format(g_szBuffersizeof(g_szBuffer), "{ffffff}Redaguojama „{d8a9ff}%s{ffffff}“ frakcija:\n \n    {d8a9ff}•{ffffff} atliekamas veiksmas %s,\n    {d8a9ff}•{ffffff} veiksmo informacija %s"frakcija[fChosen[playerid]][fName], getActionEdit(playerid), setActionInfo(playerid));
                        
ShowPlayerDialog(playerid855DIALOG_STYLE_MSGBOXzinuteg_szBuffer"Keisti""Atgal");
                    } 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)