25.01.2011, 19:45
You must add into array
and then
pawn Код:
korjaamosuihku[krsid][Loaded] = CreateDynamicObject(...
pawn Код:
stock UnloadKorjaamoSuihku()
{
for(new krsid = 0; krsid < MAX_SUIHKUOBJ; krsid++)
{
if(korjaamosuihku[krsid][Loaded] != 0) {
DestroyDynamicObject(krsid);
korjaamosuihku[krsid][Loaded]=0;
}
}
issuihkuon = 0;
}