SA-MP Forums Archive
Wrong? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wrong? (/showthread.php?tid=199335)



Wrong? - Face9000 - 15.12.2010

Lol i got this OnPlayerConnect

Код:
if(IsLogged[playerid] == 1)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
IsLogged[playerid] = Create3DTextLabel("Hi ._.",0x00FFFFFF,X, Y, Z+2.0,20.0,1);
Attach3DTextLabelToPlayer(IsLogged[playerid],playerid,0,0,1.2);
}
And i've this warnings:


C:\Documents and Settings\EUEHUEUEHU\Desktop\SFWAR.pwn(834) : warning 213: tag mismatch
C:\Documents and Settings\EUEHUEUEHU\Desktop\SFWAR.pwn(835) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


Re: Wrong? - [UG]Scripter - 15.12.2010

Please Put the two error rows below in cronological order


Re: Wrong? - Face9000 - 15.12.2010

Umh?

This are line 834:

new Float:X, Float:Y, Float:Z;

And 835:

GetPlayerPos(playerid, X, Y, Z);


Re: Wrong? - JaTochNietDan - 15.12.2010

You are assigning a 3D Text Label to this variable IsLogged.

This seems that you have most likely not specified it as a Text3D type variable, this is what you need to do in order to store 3D Text information in it. Like so:

pawn Код:
new Text3D:IsLogged[MAX_PLAYERS];