[Mysql] Error ID: 1064 (L Considered as [])
#8

So here is the whole team that it's wrong?
PHP Code:
if(dialogid == 22)
    {
        if(
response)
        {
            new 
Float:oldposxFloat:oldposyFloat:oldposz;
            new 
Float:x,Float:y,Float:z;
            
GetPlayerPos(playerid,x,y,z);
            new 
playername[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplayernamesizeof(playername));
            
GetPlayerPos(playeridoldposxoldposyoldposz);
    for(new 
home 1home MAX_HOUSEhome++)
    {
        if (
PlayerToPoint(2playerid,HouseInfo[home][hEnterX],HouseInfo[home][hEnterY],HouseInfo[home][hEnterZ]))
        {
                    if(
GetPVarInt(playerid,"House") != 0)
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"   У вас уже есть дом, продайте его через меню >> дома >> продать");
                        return 
1;
                    }
                    if(
GetPlayerMoney(playerid) > HouseInfo[home][hPrice])
                    {
                        new 
plname[MAX_PLAYER_NAME],sql[256],string[256];
                            
GetPlayerName(playerid,plname,sizeof(plname));
                        
GivePlayerMoney(playerid,-HouseInfo[home][hPrice]);
                        
SetPVarInt(playerid,"House",home);
                        
SetPVarInt(playerid,"Int",HouseInfo[home][hInt]);
                        
SetPVarInt(playerid,"Local",HouseInfo[home][hInt]);
                        
SendClientMessage(playeridCOLOR_WHITE"Поздравляем, с покупкой дома !");
                        
SendClientMessage(playeridCOLOR_WHITE"Используйте /help чтобы посмотреть команды для дома !");
                        
SendClientMessage(playeridCOLOR_WHITE"Используйте C(кнопка присесть) что бы войти в дом !");
                        
HouseInfo[home][hId] = home// для цифр
                           
HouseInfo[home][hEnterX] = x;
                        
HouseInfo[home][hEnterY] = y;
                        
HouseInfo[home][hEnterZ] = z;
                        
HouseInfo[home][hExitX] = 2350.33984;
                             
HouseInfo[home][hExitY] = -1181.64990;
                          
HouseInfo[home][hExitZ] = 1027.97656;
                          
HouseInfo[home][hOwned] = 1;
                           
strmid(HouseInfo[home][hOwner], plname0sizeof(plname)*4sizeof(plname)*4);
                        
HouseInfo[home][hInt] = 5;
                        
HouseInfo[home][hPrice] = HouseInfo[home][hPrice];
                          
format(sql256"UPDATE `"HouseTable"` SET EnterX='%f',EnterY='%f',EnterZ='%f',ExitX='%f',ExitY='%f',ExitZ='%f',Owner='%s',Owned='%d',Price='%d',Inter='%d' WHERE id=%d",
                          
HouseInfo[home][hEnterX],
                           
HouseInfo[home][hEnterY],
                          
HouseInfo[home][hEnterZ],
                            
HouseInfo[home][hExitX],
                          
HouseInfo[home][hExitY],
                          
HouseInfo[home][hExitZ],
                          
HouseInfo[home][hOwner],
                          
plname,
                          
HouseInfo[home][hPrice],
                          
HouseInfo[home][hInt],
                          
home );
                          
mysql_query(sql);
                        
MySQL_Player_Update(playerid);
                        return 
1;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_WHITE"   У вас нет столько денег !");
                        return 
1;
                    }
                }
            }
            }
            else
            {
            return 
1;
            }
        } 
Even in the game does not show the L
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)