29.03.2017, 07:16
Quote:
Try this something like this. You should change things to be correct with your code.
I think that its better to define path of the file where they are saved. FOR EXAMPLE: Код:
#define path "/Vehicles/%s.ini" forward LoadVehicle_data(name[],value[]); public LoadVehicle_data(name[],value[]) { INI_Int("model", vInfo[playerid][model]); INI_Int("world", vInfo[playerid][world]); INI_Int("interior", vInfo[playerid][interior]); INI_Float("pos:x", vInfo[playerid][x_]); INI_Float("pos:y", vInfo[playerid][y_]); INI_Float("pos:z", vInfo[playerid][z_]); } |
Quote:
(90) : error 017: undefined symbol "playerid" (91) : error 017: undefined symbol "playerid" (92) : error 017: undefined symbol "playerid" (93) : error 017: undefined symbol "playerid" (94) : error 017: undefined symbol "playerid" (95) : error 017: undefined symbol "playerid" (96) : warning 209: function "LoadVehicle_data" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |
PHP код:
forward LoadVehicle_data(name[],value[]);
public LoadVehicle_data(name[],value[])
{
INI_Int("model", vInfo[playerid][model]);
INI_Int("world", vInfo[playerid][world]);
INI_Int("interior", vInfo[playerid][interior]);
INI_Float("pos:x", vInfo[playerid][x_]);
INI_Float("pos:y", vInfo[playerid][y_]);
INI_Float("pos:z", vInfo[playerid][z_]);
}