28.08.2010, 05:56
I tried to improve Sandra's property system and I have a few errors:
100-101
338-341
Help!
PHP код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(100) : error 032: array index out of bounds (variable "PropText")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(101) : error 032: array index out of bounds (variable "PropText")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(101) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(120) : warning 204: symbol is assigned a value that is never used: "str"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(112) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(338) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(340) : error 032: array index out of bounds (variable "PropText")
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\XXX\PropertySystem\filterscripts\Properties.pwn(341) : error 032: array index out of bounds (variable "PropText")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
PHP код:
Delete3DTextLabel(PropText[MAX_PROPERTIES]);
PropText[MAX_PROPERTIES] = 0;
PHP код:
fclose("PropertySystem/PropertyInfo.txt");
format(text, sizeof(text), "%s", PropInfo[id][PropName]);
PropText[MAX_PROPERTIES] = Create3DTextLabel(text, 0xF2FF41FF, 0, 0, 0, 30, 0, 0);
Attach3DTextLabelToVehicle(PropText[MAX_PROPERTIES],id, 0, 0, 1);