PDA

View Full Version : Help with stock saving system


ScorpiusMalfoy
11/08/2014, 06:28 AM
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

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);
}

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.

MikE1990
11/08/2014, 07:01 AM
Can you show where you declared variables?