public function crashes server ?
#8

pawn Код:
CMD:pinfo(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 4)
        {
            SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not an Admin !");
            return 1;
        }
        new dstring[128];
        for(new i = 0; i < sizeof(DIntInfo); i++)
        {
            if (IsPlayerInRangeOfPoint(playerid,3.0,DIntInfo[i][doorEntranceX], DIntInfo[i][doorEntranceY], DIntInfo[i][doorEntranceZ]))
            {
                format(dstring, sizeof(dstring), "ID: %d, Property Name: %s", i, DIntInfo[i][doorOwner]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Property Owner: %s", DIntInfo[i][doorFOwner]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Property Purchase Price: $%d", DIntInfo[i][doorBuyPrice]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Funds: %s, Type: %d, Owned: %d", DIntInfo[i][doorTill], DIntInfo[i][doorType], DIntInfo[i][doorOwned]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Interior: %d, Virtual %d, Level: %d", DIntInfo[i][doorInterior], DIntInfo[i][doorVirtual], DIntInfo[i][doorLevelRequired]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Mats: %d, Pot: %d, Crack: %d", DIntInfo[i][doorMats], DIntInfo[i][doorPot], DIntInfo[i][doorCrack]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
                format(dstring, sizeof(dstring), "Enter Angle: %f, Exit Angle: %f", DIntInfo[i][doorEntAngle], DIntInfo[i][doorExitAngle]);
                SendClientMessageEx(playerid, COLOR_GRAD1, dstring);
            }
        }
    }
    return 1;
}

Removed the OnPropUpdate . This command still crashes server....
Reply


Messages In This Thread
public function crashes server ? - by ShawnMiller1337 - 28.09.2012, 05:12
Re: public function crashes server ? - by ShawnMiller1337 - 28.09.2012, 07:15
Re: public function crashes server ? - by Cameltoe - 28.09.2012, 10:22
Re: public function crashes server ? - by Vince - 28.09.2012, 10:38
Re: public function crashes server ? - by ShawnMiller1337 - 28.09.2012, 21:05
Re: public function crashes server ? - by KingHual - 28.09.2012, 21:54
Re: public function crashes server ? - by ShawnMiller1337 - 28.09.2012, 22:19
Re: public function crashes server ? - by ShawnMiller1337 - 28.09.2012, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)