TAG mismatch
#1

It keep gives me that warning

Код:
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22783) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22784) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22784) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22792) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22793) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22794) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22795) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22845) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46074) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46074) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46093) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72574) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72642) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72660) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85317) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85342) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85342) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


17 Warnings.
Lines:

Код:
   CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,1097.4546, -1471.4102, 15.7825,342.4162,8.0);
Код:
    CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW,1092.5596,-1503.1315,15.7981,302.9124,8.0);
'

Код:
    CreateDynamic3DTextLabel("/buytoys\n To buy some accessories.",COLOR_YELLOW,1093.5383,-1505.3322,15.7981,291.6323,8.0);
Код:
    CreateDynamic3DTextLabel("This store coming soon!",COLOR_DBLUE,1094.8781,-1451.1583,24.6428,274.5389+0.6,8.0);
    CreateDynamic3DTextLabel("This store coming soon!",COLOR_DBLUE,1097.6139,-1521.2587,28.8945,316.8159+0.6,8.0);
    CreateDynamic3DTextLabel("This store coming soon!",COLOR_DBLUE,1156.6244, -1523.1223, 26.6754,52.9868+0.6,8.0);
Код:
	CreateDynamic3DTextLabel("((You can use bank commands on this position!))",COLOR_YELLOW,1096.4739,-1440.6495,15.8223,102.4269+0.5,4.0); // Bank at mall
Код:
	if(!IsPlayerInRangeOfPoint(playerid, 0, 1113.1766,-1525.6344,15.7981,334.2693) || IsPlayerInRangeOfPoint(playerid, 0, 1160.0791,-1443.3981,15.7981,91.2606))
Код:
    if(!IsPlayerInRangeOfPoint(playerid,20.0,-103.9105,-22.3268,1000.7188) || IsPlayerInRangeOfPoint(playerid, 0, 1161.8870,-1504.7720,15.8023,61.9802))
Код:
	if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422) || IsPlayerInRangeOfPoint(playerid,0,1096.5157, -1440.5133,15.8223, 87.8235))
Код:
	if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422) || IsPlayerInRangeOfPoint(playerid,0,1096.5157, -1440.5133,15.8223, 87.8235))
Код:
	if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422) || IsPlayerInRangeOfPoint(playerid,0,1096.5157, -1440.5133,15.8223, 87.8235))
Код:
	if(IsPlayerInRangeOfPoint(playerid, 0, 2787.095947, 2390.353027, 1240.531127) || IsPlayerInRangeOfPoint(playerid, 0, 1092.5596,-1503.1315,15.7981,302.9124))
Код:
	else if (IsPlayerInRangeOfPoint(playerid, 0, 1096.3719,-1471.0894,15.7825,347.0694) || IsPlayerInRangeOfPoint(playerid, 0, 1093.5383,-1505.3322,15.7981,291.6323))
	{
Код:
	else if (IsPlayerInRangeOfPoint(playerid, 0, 1096.3719,-1471.0894,15.7825,347.0694) || IsPlayerInRangeOfPoint(playerid, 0, 1093.5383,-1505.3322,15.7981,291.6323))
Reply
#2

pawn Код:
IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)
Reply
#3

Where should i input that?
Reply
#4

Nowhere.
This only shows the parameters you need to specify.

Range is a float, and in alot of your lines you specify "0" as range, which is an integer.
Change those to "0.0".

And why speficy a range of 0 meters?
This would mean the player has to be standing on exactly the same coordinates to work.
If he even moves 0.000001 meters away from those coordinates, your check is invalid.
Reply
#5

Now i changed this
Код:
    CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW, 25, 1097.4546,-1471.4102,15.7825,342.4162,8.0);
then now i get 18 warnings

Код:
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22783) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22783) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22784) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22791) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22792) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22793) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22794) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22795) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(22845) : warning 213: tag mismatch
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46074) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46074) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(46093) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72574) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72642) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(72660) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85317) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85342) : warning 202: number of arguments does not match definition
C:\Users\JakkenKoppen\Desktop\Rare stuff\PLAO\gamemodes\pla.pwn(85342) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


18 Warnings.
Reply
#6

Anyone?
Reply
#7

Quote:
Originally Posted by TonyNames
Посмотреть сообщение
Now i changed this
Код:
    CreateDynamic3DTextLabel("/buyclothes\n To change your skin.",COLOR_YELLOW, 25, 1097.4546,-1471.4102,15.7825,342.4162,8.0);
[/code]
From the streamer plugin topic:
Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
text = "/buyclothes\n To change your skin." ==> correct
color = COLOR_YELLOW ==> correct
Float: x = 25 ==> incorrect, as 25 is an integer
Float: y = 1097.4546 ==> seems like this is the "x" to me
Float: z = -1471.4102 ==> seems like this is the "y" to me
Float: drawdistance = 15.7825 ==> seems this should be the "z"
attachedplayer = 342.4162 ==> incorrect, playerid's are integers (seems like this should be the drawdistance)
attachedvehicle = 8.0 ==> incorrect, vehicleid's are also integers

Look at each parameter and see what's wrong and what it should be.
Looks like "25" should be removed, and the "8.0" as well.
Reply
#8

you already know that you can compile your gamemode successful right ? i don't think these warnings will make big problem ?!
Reply
#9

Compiling with warnings may work, but with the wrong data, I doubt his code will work properly.
Wrong coordinates for a start (25 is alot different than 1097.4546 for example).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)