12.06.2016, 13:57
(
Последний раз редактировалось Kenway; 12.06.2016 в 15:50.
)
Hello I have an error:
I checked some stuff the problem starts when SavePlant work
PHP код:
[zcmd] [Cruz d]: /plantseeds
[16:49:15] [debug] Run time error 6: "Invalid instruction"
[16:49:15] [debug] Unknown opcode 0xb0cf9400 at address 0x00000037
[16:49:15] [debug] AMX backtrace:
[16:49:15] [debug] #0 00000037 in public OnDialogResponse () at <unknown file>:0
PHP код:
//SavePlant
SavePlant(plantid)
{
new pFile[64];
format(pFile, sizeof(pFile),"plants/%d.ini",plantid);
new INI:File = INI_Open(pFile);
INI_SetTag(File, "Plant");
INI_WriteString(File, "Owner", Plants[plantid][pOwner]);
INI_WriteInt(File, "PlantSpawned", Plants[plantid][pObjectSpawned]);
INI_WriteInt(File, "Type", Plants[plantid][pPlantType]);
INI_WriteInt(File, "Object", Plants[plantid][pObject]);
INI_WriteInt(File, "Growth", Plants[plantid][pGrowth]);
INI_WriteInt(File, "VW", Plants[plantid][pExpires]);
INI_WriteInt(File, "Interior", Plants[plantid][pInterior]);
INI_WriteFloat(File, "PosX", Plants[plantid][pPos][0]);
INI_WriteFloat(File, "PosY", Plants[plantid][pPos][1]);
INI_WriteFloat(File, "PosZ", Plants[plantid][pPos][2]);
INI_WriteInt(File, "Experies", Plants[plantid][pExpires]);
INI_WriteInt(File, "DrugSkill", Plants[plantid][pDrugsSkill]);
INI_Close(File);
return 1;
}