Help with saving function
#6

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
Just a simple exemple
PHP код:
function LoadVehicles(vehid,name[],value[])
{
    
INI_String("Owner"VehicleInfo[vehid][vOwner], MAX_PLAYER_NAME); 
    
INI_Int("ID",VehicleInfo[veid][vID]);
    
INI_String("Plate"VehicleInfo[vehid][vPlate], 10); 
    return 
1;

Код:
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1009) : error 001: expected token: ")", but found "["
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1009) : warning 215: expression has no effect
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1009) : error 001: expected token: ";", but found "]"
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1009) : error 029: invalid expression, assumed zero
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1009) : fatal error 10
Alright so I think of a different thing, I will make files with vehicles in scriptfiles, but how do I make them load when the server start I really don't know how to make them load...

I mean.. I can use CreateVehicle(x, x,)... load the details from the files, but how do I create more vehicles? Like how to give a random id to every vehicle, example below
vehicle[0] = createvehicle
vehicle[1] = createvehicle
vehicle[2] = createvehicle
vehicle[3] = createvehicle

I want to have like 50+ cars around the map, buyable by players, I want to save them in a file, I can make the file manually and set the owner to noone and the position, but I do not know how to load that file and spawn the vehicles?
Reply


Messages In This Thread
Help with saving function - by AndreiWow - 23.01.2017, 15:30
Re: Help with saving function - by AndreiWow - 24.01.2017, 15:37
Re: Help with saving function - by Amads - 24.01.2017, 15:39
Re: Help with saving function - by AndreiWow - 24.01.2017, 15:42
Re: Help with saving function - by Eoussama - 24.01.2017, 15:42
Re: Help with saving function - by AndreiWow - 24.01.2017, 16:13
Re: Help with saving function - by Eoussama - 24.01.2017, 16:52
Re: Help with saving function - by AndreiWow - 24.01.2017, 19:11
Re: Help with saving function - by Eoussama - 24.01.2017, 19:25
Re: Help with saving function - by AndreiWow - 24.01.2017, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)