Warning fix
#1

I have a warning but i don't know what's wrong.

1.
D:\server\gmi.pwn(65945) : warning 213: tag mismatch

Line 65945:
Код HTML:
bust[playerid] = CreatePlayer3DTextLabel(playerid,"",0x008080FF,-0.0129, 1.0810, 1.0200,40.0);
Line above and after:
Код HTML:
switch(PlayerData[playerid][pStrongModel])
{
	case 0: param2 = "Strong";
	case 1: param2 = "Low";
	default: param2 = "Unknown";
}
buster[playerid] = CreatePlayer3DTextLabel(playerid,"",0x008080FF,-0.0129, 1.0810, 1.0200,40.0);
new km = PlayerData[playerid][KM2];
Thanks !
Reply
#2

Make sure the following is correct:>

Quote:

new PlayerText3D:bust[MAX_PLAYERS];

You might've written it as:> Text3D:


PHP код:
bust[playerid] = CreatePlayer3DTextLabel(playerid,"",0x008080FF,-0.01291.08101.0200,40.0); 
Never make text[] empty.... Replace the above with

PHP код:
bust[playerid] = CreatePlayer3DTextLabel(playerid,"_",0x008080FF,-0.01291.08101.0200,40.0); 
Reason:>
PHP код:
If text[] is empty, the server/clients next to the text might crash
SAme for buster[playerid]

Ref: Click here: SAMP-Wiki
Reply
#3

Doesn't work. If I replace new Text3d:bust[MAX_PLAYERS]; with your line i will receive more tag mismatch warnings.

I put _ there and still receive that warning.
Reply
#4

Change "CreatePlayer3DTextLabel(playerid" to "Create3DTextLabel("
You are trying to store a PlayerText3D inside a Text3D variable.. That's why you are getting the warning.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)