Jump to content
  • 0

Question

Posted

allut am si eu aceste erori :

[pawn]C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(11752) : error 017: undefined symbol "targetid"

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(11754) : error 035: argument type mismatch (argument 1)

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase[/pawn]

2 Errors.

la :

[pawn]new level = PlayerInfo[targetid][pLevel];

    format(string, sizeof(string), "Level : %s", level);

    Textdraw0 = TextDrawCreate(string);

    TextDrawBackgroundColor(Textdraw0, -65281);

    TextDrawFont(Textdraw0, 2);

    TextDrawLetterSize(Textdraw0, 0.509948, 1.399999);

    TextDrawColor(Textdraw0, 16711935);

    TextDrawSetOutline(Textdraw0, 1);

    TextDrawSetProportional(Textdraw0, 1);[/pawn]

si nu stiu ce sa ii mai fac 

EDIT : este pus la OnGameModeInit

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

6 answers to this question

Recommended Posts

Posted

Sterge

new level = PlayerInfo[targetid][pLevel];
format(string, sizeof(string), "Level : %s", level);
si schimba
Textdraw0 = TextDrawCreate(string);
in
Textdraw0 = TextDrawCreate( "Level : -" );

+ Inaintea la "Level : -" trebuie sa pui coordonatele textdrawului, ia bine codul din GM-ul din care ai luat asta.

Posted

Dar cum pot face sa apara Levelul??? si nu am laut din GM ci e facut cu TextDrawEditor

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Posted

omfg:

[pawn]

new Text: LevelText[MAX_PLAYERS];

LevelText[playerid] = TextDrawCreate(X, Y, "--");

TextDrawBackgroundColor(LevelText[playerid], -65281);

TextDrawFont(LevelText[playerid], 2);

TextDrawLetterSize(LevelText[playerid], 0.509948, 1.399999);

TextDrawColor(LevelText[playerid], 16711935);

TextDrawSetOutline(LevelText[playerid], 1);

TextDrawSetProportional(LevelText[playerid], 1);

//OnPlayerConnect

new string[64];

format(string, sizeof string, "Level: %d", PlayerInfo[playerid][pLevel]);

TextDrawSetString(Text: LevelText[playerid], string);

TextDrawShowForPlayer(playerid, Text: LevelText[playerid]);

//OnPlayerSpawn

[/pawn]

was that hard?

Posted

not , was very easy , thanx !! , but : [pawn]C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5674) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : warning 215: expression has no effect

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 001: expected token: ";", but found "]"

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 029: invalid expression, assumed zero

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.[/pawn]

la :

[pawn]format(string, sizeof string, "Level: %d", PlayerInfo[playerid][pLevel]);

5676 - TextDrawSetString(Text: Textdraw0[playerid], string);

TextDrawShowForPlayer(playerid, Text: Textdraw0[playerid]);[/pawn]

HostName: [RPG]*|| Ecila Royal Gaming ||*-WIPED

Address:  93.114.82.70:7777

Posted

not , was very easy , thanx !! , but : [pawn]C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5674) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : warning 215: expression has no effect

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 001: expected token: ";", but found "]"

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 029: invalid expression, assumed zero

C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.[/pawn]

la :

[pawn]format(string, sizeof string, "Level: %d", PlayerInfo[playerid][pLevel]);

5676 - TextDrawSetString(Text: Textdraw0[playerid], string);

TextDrawShowForPlayer(playerid, Text: Textdraw0[playerid]);[/pawn]

tu gandesti cand copiezi ceva? ti-am scris tot codul, si o iei tot pe a ta? :|

in Dmnz invata sa dai copy si paste

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.