tag mismatch [Need Help]
#1

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

Код HTML:
new Float: Pos[3];

PlayerInfo[playerid][pCPX] = Pos[0];
PlayerInfo[playerid][pCPY] = Pos[1];
PlayerInfo[playerid][pCPZ] = Pos[2];
Reply
#3

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]);
Reply
#4

Up ... [Updated] [please answer!]
Reply
#5

Can u show enum please ?
Reply
#6

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

PHP код:
    Float:pCPX,
    
Float:pCPZ,
    
Float:pCPZ 
Try with float man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)