warning 213: tag mismatch
#1

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
Reply
#2

There are 15 specifiers and 17 elements in your format.
Reply
#3

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
Reply
#4

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
Reply
#5

Anyone ?
Reply
#6

You are declaring the array in the wrong way maybe. Show us how the array is being declared.
Reply
#7

there is full stock, help me
http://pastebin.com/4VBSZD4v
Reply
#8

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.
Reply
#9

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
Reply
#10

Feel bad for you. But I may suggest you to go first learn pawn. And then come back to scripting.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)