24.03.2012, 22:15
Hey, i'm adding a property system to my TDM so players can own different misc properties. but i'm having an issue with the reading.
Код:
C:\Documents and Settings\john\Desktop\RCTDM\gamemodes\RCTDM.pwn(483) : error 001: expected token: ")", but found "[" C:\Documents and Settings\john\Desktop\RCTDM\gamemodes\RCTDM.pwn(483) : warning 215: expression has no effect C:\Documents and Settings\john\Desktop\RCTDM\gamemodes\RCTDM.pwn(483) : error 001: expected token: ";", but found "]" C:\Documents and Settings\john\Desktop\RCTDM\gamemodes\RCTDM.pwn(483) : error 029: invalid expression, assumed zero C:\Documents and Settings\john\Desktop\RCTDM\gamemodes\RCTDM.pwn(483) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
public LoadProperty_data(propertyid,name[],value[])
{
INI_String("Owner",PropertyInfo[propertyid][Owner],100);
INI_String("PropertyName",PropertyInfo[propertyid][PropertyName],100);
INI_Int("Price"PropertyInfo[propertyid][Price]);
INI_Float("x"PropertyInfo[propertyid][x]);
INI_Float("y"PropertyInfo[propertyid][y]);
INI_Float("z"PropertyInfo[propertyid][z]);
INI_Int("Payout"PropertyInfo[propertyid][Payout]);
INI_Int("PropertyID"PropertyInfo[propertyid][PropertyID]);
INI_Int("PropertyPickup"PropertyInfo[propertyid][PropertyPickup]);
return 1;
}