28.09.2012, 05:12
when ever I do OnPropUpdate(); my server crashes , here is the coding for it
pawn Код:
forward OnPropUpdate()
public OnPropUpdate()
{
new coordsstring[1024];
new idx;
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
DIntInfo[idx][doorOwned],
DIntInfo[idx][doorOwner],
DIntInfo[idx][doorUOwner],
DIntInfo[idx][doorFOwner],
DIntInfo[idx][doorEntranceX],
DIntInfo[idx][doorEntranceY],
DIntInfo[idx][doorEntranceZ],
DIntInfo[idx][doorEntAngle],
DIntInfo[idx][doorExitX],
DIntInfo[idx][doorExitY],
DIntInfo[idx][doorExitZ],
DIntInfo[idx][doorExitAngle],
DIntInfo[idx][doorLevelRequired],
DIntInfo[idx][doorTill],
DIntInfo[idx][doorMats],
DIntInfo[idx][doorPot],
DIntInfo[idx][doorCrack],
DIntInfo[idx][doorLocked],
DIntInfo[idx][doorInterior],
DIntInfo[idx][doorVirtual],
DIntInfo[idx][doorBuyPrice],
DIntInfo[idx][doorType]);
new File: file2 = fopen("dint.cfg", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}