SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/08/2014, 06:28 AM   #1
ScorpiusMalfoy
Big Clucker
 
Join Date: May 2014
Posts: 68
Reputation: 0
Default Help with stock saving system

I'm creating funtion to save my hotdog system. But compiler error and mismatch warning. I don't know how to fox that cuz my level pawn wus low. Any one can help me fix that pls. +Rep and thanks you so much.
Stock

Quote:
stock SaveHotDog()
{

new
szFileStr[1024],
File: fHandle = fopen("hotdog.cfg", io_write);

for(new iIndex; iIndex < MAX_HOTDOGUG; iIndex++) {
format(szFileStr, sizeof(szFileStr), "%d|%d|%d|%d|%d|%f|%f|%f|%f|%s",
HDExist,
HDOwned,
HDPrice,
HDSafe,
HDItem,
Float: hdExterior[0],
Float: hdExterior[1],
Float: hdExterior[2],
Float: hdExterior[3],
HDTextID
);
fwrite(fHandle, szFileStr);
}
return fclose(fHandle);
}
Quote:
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29290) : warning 213: tag mismatch
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29291) : warning 213: tag mismatch
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29292) : warning 213: tag mismatch
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29293) : warning 213: tag mismatch
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29294) : warning 213: tag mismatch
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29289 -- 29295) : error 028: invalid subscript (not an array or too many subscripts): "hdExterior"
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29295) : warning 215: expression has no effect
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29295) : error 001: expected token: ";", but found "]"
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29295) : error 029: invalid expression, assumed zero
C:\Users\Scorpirus Malfoy\Downloads\Compressed\SFEQWETYUIO\SFEQWETYUI O\Test Game Mode\gamemodes\Update267.pwn(29295) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
ScorpiusMalfoy is offline   Reply With Quote
Old 11/08/2014, 07:01 AM   #2
MikE1990
Big Clucker
 
Join Date: Feb 2014
Posts: 150
Reputation: 5
Default Re: Help with stock saving system

Can you show where you declared variables?
MikE1990 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
[FilterScript] Simple Toy System + Saving with DINI. (saving only 1 slot) PaulDinam Filterscripts 24 20/11/2018 01:36 PM
MySQL saving system to DJSON saving system TonyNames Scripting Help 4 21/01/2014 06:27 PM
Stock for saving vehicle numbers via y_ini (%d.ini) Riwerry Scripting Help 4 12/11/2013 06:20 PM
New saving system and still not saving score/money Karl[NDZ] Scripting Help 16 12/09/2013 06:55 AM


All times are GMT. The time now is 11:18 AM.


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