Mysql problem
#3

Quote:
Originally Posted by JesterlJoker
Посмотреть сообщение
I don't think the problem is in there...

Can you show me how you create the icons and the text above?

I think its in the way you use your iterate
You mean this?
PHP код:
CMD:createentrance(playeridparams[])
{
    new 
name[40], Float:xFloat:yFloat:zFloat:a;
    if(
PlayerInfo[playerid][pAdmin] < && !PlayerInfo[playerid][pGangMod])
    {
        return 
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command.");
    }
    if(
sscanf(params"s[40]"name))
    {
        return 
SendClientMessage(playeridCOLOR_GREY3"[Usage]: /createentrance [name]");
    }
    if(
GetNearbyEntrance(playerid) >= 0)
    {
        return 
SendClientMessage(playeridCOLOR_GREY"There is an entrance in range. Find somewhere else to create this one.");
    }
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playerida);
    for(new 
0MAX_ENTRANCES++)
    {
        if(!
EntranceInfo[i][eExists])
        {
            
mysql_format(connectionIDqueryBuffersizeof(queryBuffer), "INSERT INTO entrances (name, pos_x, pos_y, pos_z, pos_a, outsideint, outsidevw) VALUES('%e', '%f', '%f', '%f', '%f', %i, %i)"namexyz180.0GetPlayerInterior(playerid), GetPlayerVirtualWorld(playerid));
            
mysql_tquery(connectionIDqueryBuffer"OnAdminCreateEntrance""iisffff"playeridinamexyza);
            return 
1;
        }
    }
    
SendClientMessage(playeridCOLOR_GREY"Entrance slots are currently full. Ask Kirito to increase the internal limit.");
    return 
1;

Reply


Messages In This Thread
[Sloved]Mysql problem - by ScottMcBean - 21.04.2018, 16:50
Re: Mysql problem - by JesterlJoker - 21.04.2018, 16:57
Re: Mysql problem - by ScottMcBean - 21.04.2018, 16:59
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:08
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:11
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:27
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:30
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:33
Re: Mysql problem - by ScottMcBean - 21.04.2018, 17:44
Re: Mysql problem - by JesterlJoker - 21.04.2018, 17:49

Forum Jump:


Users browsing this thread: 3 Guest(s)