Tag MisMatch? Don't See Why - 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? Don't See Why (
/showthread.php?tid=327913)
Tag MisMatch? Don't See Why -
Robert_Crawford - 22.03.2012
2533 - 2538
pawn Код:
if( IsPlayerInZone(playerid, gangzoneInfo[g][gzMinX] , gangzoneInfo[g][gzMinY] , gangzoneInfo[g][gzMaxX] , gangzoneInfo[g][gzMaxY] ) )
{
gangzoneInfo[g][gzOwner] = pF;
printf( "Gangzone %d Updated: Owner: %d" , g , gangzoneInfo[g][gzOwner] );
GangZoneStopFlashForAll( gz );
GangZoneHideForAll( gz );
6051 - 6062
pawn Код:
stock IsPlayerInZone(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
{
new RetValue = 0;
new Float: PosX, Float: PosY, Float: PosZ;
GetPlayerPos( playerid, PosX, PosY, PosZ );
if( PosX >= XMin && PosY >= YMin && PosX < XMax && PosY < YMax )
{
RetValue = 1;
}
return RetValue;
}
Код:
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2533) : warning 213: tag mismatch
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2533) : warning 202: number of arguments does not match definition
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2533) : warning 202: number of arguments does not match definition
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2533) : warning 202: number of arguments does not match definition
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2555) : error 035: argument type mismatch (argument 2)
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2555) : warning 215: expression has no effect
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2555) : error 001: expected token: ";", but found "]"
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2555) : error 029: invalid expression, assumed zero
C:\Users\HCC\Desktop\Linux-Server\gamemodes\vrp.pwn(2555) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Tag MisMatch? Don't See Why -
Twisted_Insane - 22.03.2012
Sigh...From where shall we know which line it is?
Re: Tag MisMatch? Don't See Why -
Robert_Crawford - 22.03.2012
Sorry forgot to add line numbers.
Re: Tag MisMatch? Don't See Why -
ikkentim - 23.03.2012
Have you defined gzMinX gzMaxX gzMinY and gzMaxY as an Float?
You should do so