SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/02/2015, 04:25 AM   #1
Bertie
Little Clucker
 
Join Date: Jul 2014
Location: The Moon
Posts: 47
Reputation: 21
Default Vehicle saving system

pawn Code:
stock VehicleLoad(vid, file[])
{
    INI_ParseFile(file, "LoadVehicleData", .bExtra = true, .extra = vid);
    CreateVehicleEx(VehicleInfo[vid][vModel], VehicleInfo[vid][vSpawn], VehicleInfo[vid[vColor1], VehicleInfo[vid [vColor2], VehicleInfo[vid][vRespawn], VehicleInfo[vid][vOwner]); // Line 53
}

pawn Code:
Gamemode.pwn(53) : error 047: array sizes do not match, or destination array is too small
Gamemode.pwn(53) : warning 215: expression has no effect
Gamemode.pwn(53) : error 001: expected token: ";", but found "]"
Gamemode.pwn(53) : error 029: invalid expression, assumed zero
Gamemode.pwn(53) : fatal error 107: too many error messages on one line

Need help solving this error.
Bertie is offline   Reply With Quote
Old 15/02/2015, 05:12 AM   #2
_Mohit_
Big Clucker
 
Join Date: Sep 2012
Location: India
Posts: 83
Reputation: 5
Default Re: Vehicle saving system

You forgot to add 2 closing brackets(]) here,
Code:
VehicleInfo[vid[vColor1], VehicleInfo[vid [vColor2]
Just add the closing brackets and it should look like this
Code:
VehicleInfo[vid][vColor1], VehicleInfo[vid][vColor2]
Let me know if it has fixed your problem.
_Mohit_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Vehicle System Saving Bug Robi222 Scripting Help 0 26/09/2014 10:40 AM
Can someone make tutorial how to make vehicle tune saving system ? barts Scripting Help 3 09/01/2014 12:40 PM
Problem with saving vehicle system. Joy_Freed Scripting Help 3 25/08/2012 01:42 AM
Vehicle saving/loading system Mozzy Scripting Help 2 05/01/2012 07:00 PM
Some bugs on saving vehicle system blackwave Help Archive 3 27/11/2010 08:12 PM


All times are GMT. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.