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: Tag mismatch (
/showthread.php?tid=608022)
Tag mismatch -
justjamie - 26.05.2016
hello
this line shows a tag mismatch:
PHP код:
format(string,sizeof(string),"%i(%i)",cInfo[v][modelid],cInfo[v][db_id]);
what's wrong here?
Re: Tag mismatch -
Dayrion - 26.05.2016
Where is the tag mismatch in the line? cInfo[v][modelid],cInfo[v][db_id] are both integer ?
Re: Tag mismatch -
justjamie - 26.05.2016
Quote:
Originally Posted by Dayrion
Where is the tag mismatch in the line? cInfo[v][modelid],cInfo[v][db_id] are both integer ?
|
yez they are
Re: Tag mismatch -
Darkwood17 - 26.05.2016
Your code looks fine. Show the cInfo enum.
Re: Tag mismatch -
justjamie - 26.05.2016
Quote:
Originally Posted by Darkwood17
Show your cInfo enum.
|
PHP код:
enum carEnum{
carowner[MAX_PLAYER_NAME],
carmodelid,
Float:c_x,
Float:c_y,
Float:c_z,
Float:c_r,
c_color1,
c_color2,
c_respawntime,
cnitro,
paintjob,
plate,
c_autorespawn,
carteam,
db_id
}
new cInfo[1000][carEnum];
Re: Tag mismatch -
justjamie - 26.05.2016
Welp i need carmodelid not modelid
.
Re: Tag mismatch -
Darkwood17 - 26.05.2016
Quote:
Originally Posted by justjamie
PHP код:
enum carEnum{
carowner[MAX_PLAYER_NAME],
carmodelid,
Float:c_x,
Float:c_y,
Float:c_z,
Float:c_r,
c_color1,
c_color2,
c_respawntime,
cnitro,
paintjob,
plate,
c_autorespawn,
carteam,
db_id
}
new cInfo[1000][carEnum];
|
Your problem is not in the enumerator or in the format. Show where you used the string variable.
Re: Tag mismatch -
MBilal - 26.05.2016
Код:
format(string,sizeof(string),"%i(%i)",cInfo[v][carmodelid],cInfo[v][db_id]);