MySQL problem (i think)
#5

Quote:
Originally Posted by Lucases
Посмотреть сообщение
Show me "SetPlayerCamera" custom function and "CheckBanList" callback
That's the "CheckBanList"

PHP код:
function:CheckBanList(playerid)
{    
    if(!
cache_num_rows())
    {
        new 
existCheck[129];
    
        
mysql_format(ourConnectionexistChecksizeof(existCheck), "SELECT acc_dbid FROM masters WHERE acc_name = '%e'"ReturnName(playerid));
        
mysql_tquery(ourConnectionexistCheck"LogPlayerIn""i"playerid);
    }
    else
    {
        
SendServerMessage(playerid"Your IP \"%s\" is banned from our servers."ReturnIP(playerid));
        
SendServerMessage(playerid"You may appeal your ban on our forums."); 
        return 
KickEx(playerid);
    }
    return 
1;

That's the SetPlayerCamera :

PHP код:
function:SetPlayerCamera(playerid)
{
    new 
rand random(3);
    switch(
rand)
    {
        case 
0:
        {
               
SetPlayerCameraPos(playerid1249.3018, -1697.804699.9554);
            
SetPlayerCameraLookAt(playerid1249.6576, -1696.865699.4902);
        }
        case 
1:
        {
               
SetPlayerCameraPos(playerid2151.2539, -1894.544785.3924);
            
SetPlayerCameraLookAt(playerid2150.5833, -1893.806684.6774);
        }
        case 
2:
        {
               
SetPlayerCameraPos(playerid2169.0635, -1740.4182112.0308);
            
SetPlayerCameraLookAt(playerid2170.0603, -1740.3655111.3108);
        }
    }
    return 
1;

Reply


Messages In This Thread
MySQL problem (i think) - by Grintch - 19.11.2017, 12:54
Re: MySQL problem (i think) - by Lucases - 19.11.2017, 13:27
Re: MySQL problem (i think) - by Grintch - 19.11.2017, 13:54
Re: MySQL problem (i think) - by Lucases - 19.11.2017, 14:03
Re: MySQL problem (i think) - by Grintch - 19.11.2017, 14:24
Re: MySQL problem (i think) - by Grintch - 19.11.2017, 17:01
Re: MySQL problem (i think) - by Grintch - 19.11.2017, 22:20
Re: MySQL problem (i think) - by Grintch - 21.11.2017, 10:04
Re: MySQL problem (i think) - by Grintch - 22.11.2017, 08:31
Re: MySQL problem (i think) - by Kane - 22.11.2017, 08:55

Forum Jump:


Users browsing this thread: 2 Guest(s)