Jump to content
  • 0

undefine simbol playerid


marian

Question

Nu am mai cerut ajutor de mult dar acum nu inteleg ce are

C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(7871) : warning 219: local variable "respects" shadows a variable at a preceding level
C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(7871) : error 017: undefined symbol "playerid"
C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(7872) : warning 213: tag mismatch
C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(7872) : warning 202: number of arguments does not match definition
C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(7872) : warning 213: tag mismatch
C:\Documents and Settings\cata\Desktop\s\gamemodes\gasdrift.pwn(19952) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

[pawn] new respects = PlayerInfo[playerid][pRespects];

respects = Create3DTextLabel("Evaluare: %d",respects,0x339966AA, 7.77, 7.77, 7.77, 100.0, 0, 1);[/pawn]

Va rog mult daca intelegeti ce are ajutatima si pe mn:D

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Incearca

// Sus in script

[pawn]new Text3D:respects3D[ MAX_PLAYERS ];[/pawn]

// OnGameModeInit

[pawn]for( new i; i < MAX_PLAYERS; i ++ ) respects3D[ i ] = Create3DTextLabel("Evaluare",0x339966AA, 7.77, 7.77, 7.77, 100.0, 0, 1);[/pawn]

// OnPlayerConnect

[pawn]new string[ 128 ];

format( string, 128, "Evaluare: %d", respects );

Update3DTextLabelText( respects3D[ playerid ] );

Attach3DTextLabelToPlayer( respects3D[ playerid ], playerid, 0.0, 0.0, 0.5 );

[/pawn]

// OnPlayerLogin

[pawn]new string[ 128 ];

format( string, 128, "Evaluare: %d", respects );

Update3DTextLabelText( respects3D[ playerid ] );

Attach3DTextLabelToPlayer( respects3D[ playerid ], playerid, 0.0, 0.0, 0.5 );[/pawn]

Cred ca asta vrei. :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.