warning 213: tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch (
/showthread.php?tid=531393)
warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
i got 1 Warning tag mismatch when compiler. There is funtion warning
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|%s|%d|%s|%d|%d|%d|%d|%f|%f|%f|%f|%s\r\n" ,
HotDogUG[iIndex][HDSQLId],
HotDogUG[iIndex][HDExist],
HotDogUG[iIndex][HDModelID],
HotDogUG[iIndex][HDOwned],
HotDogUG[iIndex][HDPrice],
HotDogUG[iIndex][HDMenu],
HotDogUG[iIndex][HDMenus],
HotDogUG[iIndex][HDOffer],
HotDogUG[iIndex][HDOfferCash],
HotDogUG[iIndex][HDSafe],
HotDogUG[iIndex][HDItem],
HotDogUG[iIndex][HDcp],
HotDogUG[iIndex][hdExterior][0],
HotDogUG[iIndex][hdExterior][1],
HotDogUG[iIndex][hdExterior][2],
HotDogUG[iIndex][hdExterior][3],
HotDogUG[iIndex][HDTextID]
);
fwrite(fHandle, szFileStr);
}
return fclose(fHandle);
}
|
Warning start in line format(szFileStr, sizeof(szFileStr), and finish in line HotDogUG[iIndex][HDTextID] anyone can help me fix that pls. Thanks you
Re: warning 213: tag mismatch -
Faisal_khan - 12.08.2014
There are 15 specifiers and 17 elements in your format.
Re: warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
Yes im add them on but warning continue ==" Can you help me pls. It's there is code 2 stock warning tag mismatch, but still working on test save and load my system. I need to remove warning tag mismatch =="
http://pastebin.com/4VBSZD4v
Re: warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
Still Warning in
Quote:
format(szFileStr, sizeof(szFileStr), "%d|%d|%s|%d|%d|%d|%d|%f|%f|%f|%f|%d\r\n",
HotDogUG[iIndex][HDExist],
HotDogUG[iIndex][HDModelID],
HotDogUG[iIndex][HDOwned],
HotDogUG[iIndex][HDPrice],
HotDogUG[iIndex][HDSafe],
HotDogUG[iIndex][HDItem],
HotDogUG[iIndex][HDcp],
HotDogUG[iIndex][hdExterior][0],
HotDogUG[iIndex][hdExterior][1],
HotDogUG[iIndex][hdExterior][2],
HotDogUG[iIndex][hdExterior][3],
HotDogUG[iIndex][HDTextID]
);
|
And
Quote:
sscanf(szFileStr, "p<|>iis[24]iiiiffffs[128]",
HotDogUG[iIndex][HDExist],
HotDogUG[iIndex][HDModelID],
HotDogUG[iIndex][HDOwned],
HotDogUG[iIndex][HDPrice],
HotDogUG[iIndex][HDSafe],
HotDogUG[iIndex][HDItem],
HotDogUG[iIndex][HDcp],
HotDogUG[iIndex][hdExterior][0],
HotDogUG[iIndex][hdExterior][1],
HotDogUG[iIndex][hdExterior][2],
HotDogUG[iIndex][hdExterior][3],
HotDogUG[iIndex][HDTextID]
);
|
Anyone help me remove this warning out of my gamemode pls
Re: warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
Anyone ?
Re: warning 213: tag mismatch -
Faisal_khan - 12.08.2014
You are declaring the array in the wrong way maybe. Show us how the array is being declared.
Re: warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
there is full stock, help me
http://pastebin.com/4VBSZD4v
Re: warning 213: tag mismatch -
Faisal_khan - 12.08.2014
This paste has been removed!
And not the stock, the declaration of the array. If you don't know what I mean go to wiki.sa-mp.com learn scripting then come back to this issue and you will definitely know how to solve this problemo.
Re: warning 213: tag mismatch -
ScorpiusMalfoy - 12.08.2014
sorry, my level pawn so bad, im beginer scripting ==" The first i try to create saving system for my hotdog system ==" Can you help me pls. Im reup stock is there Error im fixed but still warning
Quote:
C:\Users\Hyperion\Downloads\Compressed\SFEQWETYUIO \SFEQWETYUIO\Test Gamemode\gamemodes\Update267.pwn(29297 -- 29310) : warning 213: tag mismatch
C:\Users\Hyperion\Downloads\Compressed\SFEQWETYUIO \SFEQWETYUIO\Test Gamemode\gamemodes\Update267.pwn(29326 -- 29339) : warning 213: tag mismatch
|
http://pastebin.com/fQwrbxZL
Re: warning 213: tag mismatch -
Faisal_khan - 12.08.2014
Feel bad for you. But I may suggest you to go first learn pawn. And then come back to scripting.