Ben j'ai fait ça regarde
if ( scores >= 50 && scores <= 99 )
{
pRang[playerid] = RECRUE;
new Text:texta = TextDrawCreate(450.0, 425.0,"~g~Recrue");
TextDrawUseBox(texta, 0);
TextDrawFont(texta, 0);
TextDrawSetShadow(texta,1);
TextDrawSetOutline(texta,1);
TextDrawBackgroundColor(texta,0x000000FF);
TextDrawColor(texta,0xFFFFFFFF);
TextDrawShowForPlayer(playerid, texta);
}
else if ( scores >= 100 && scores <= 149 )
{
pRang[playerid] = CORPORAL;
new Text:textb = TextDrawCreate(450.0, 425.0,"~g~Corporal");
TextDrawUseBox(textb, 0);
TextDrawFont(textb, 0);
TextDrawSetShadow(textb,1);
TextDrawSetOutline(textb,1);
TextDrawBackgroundColor(textb,0x000000FF);
TextDrawColor(textb,0xFFFFFFFF);
TextDrawShowForPlayer(playerid, textb);
TextDrawDestroy(texta,playerid);
}
Et il me dit
J:\[FR] Projet's MW2\gamemodes\[FR]MW2(2).pwn(578) : error 017: undefined symbol "texta"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Alors qu'il est definie en haut ?