28.09.2012, 22:37
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....