tag mismatch [Need Help] - 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 [Need Help] (
/showthread.php?tid=560479)
tag mismatch [Need Help] -
Alpay0098 - 28.01.2015
These codes got Tag Mismatch error while compiling.
Код:
PlayerInfo[playerid][pCPX] = X;
PlayerInfo[playerid][pCPY] = Y;
PlayerInfo[playerid][pCPZ] = Z;
Also I already defined pCPX , pCPY , pCPZ in PlayerInfo[MAX_PLAYERS][pInfo].
*** X , Y , Z already defined too with Float in NEW and :
GetPlayerPos(playerid, X, Y, Z);
What's problem?
(ЧRep for helper)
Re: tag mismatch [Need Help] -
rOps - 28.01.2015
Код HTML:
new Float: Pos[3];
PlayerInfo[playerid][pCPX] = Pos[0];
PlayerInfo[playerid][pCPY] = Pos[1];
PlayerInfo[playerid][pCPZ] = Pos[2];
Re: tag mismatch [Need Help] -
Alpay0098 - 28.01.2015
What about this?
Errors:
Код:
C:\Documents and Settings\Administrator\Desktop\Rp\******* Roleplay\gamemodes\******.pwn(24831) : warning 219: local variable "Pos" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\Rp\****** Roleplay\gamemodes\******.pwn(24833) : error 028: invalid subscript (not an array or too many subscripts): "Pos"
C:\Documents and Settings\Administrator\Desktop\Rp\******* Roleplay\gamemodes\****.pwn(24833) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Rp\******** Roleplay\gamemodes\******.pwn(24833) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\Rp\********\gamemodes\******.pwn(24833) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Rp\********\gamemodes\*******.pwn(24833) : fatal error 107: too many error messages on one line
PAWN:
Код:
[24831] new Float: Pos[3];
[24832] if(sscanf(params, "s[128]", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /offercp [playerid]");
[24833] GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]);
Re: tag mismatch [Need Help] -
Alpay0098 - 28.01.2015
Up ... [Updated] [please answer!]
Re: tag mismatch [Need Help] -
arlindi - 28.01.2015
Can u show enum please ?
Re: tag mismatch [Need Help] -
Alpay0098 - 28.01.2015
That's too long. but that's like :
Код:
enum pInfo
{
pCPX,
pCPY,
pCPZ
}
** pCPZ is the latest code in enum "pInfo".
but I don't think there's problem in enum ...
Re: tag mismatch [Need Help] -
arlindi - 28.01.2015
PHP код:
Float:pCPX,
Float:pCPZ,
Float:pCPZ
Try with float man