Vehicle Help
#10

Quote:
Originally Posted by ThomasEvil
Посмотреть сообщение
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_]); 
}
error
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_]);

Reply


Messages In This Thread
Vehicle Help - by se3a - 17.03.2017, 05:28
Re: Vehicle Help - by se3a - 18.03.2017, 07:47
Re: Vehicle Help - by se3a - 19.03.2017, 01:00
Re: Vehicle Help - by se3a - 20.03.2017, 00:59
Re: Vehicle Help - by se3a - 25.03.2017, 00:27
Re: Vehicle Help - by se3a - 27.03.2017, 03:15
Re: Vehicle Help - by jasperschellekens - 28.03.2017, 21:18
Re: Vehicle Help - by se3a - 29.03.2017, 04:37
Re: Vehicle Help - by ThomasEvil - 29.03.2017, 07:09
Re: Vehicle Help - by se3a - 29.03.2017, 07:16

Forum Jump:


Users browsing this thread: 3 Guest(s)