16.09.2009, 00:22
the inc is this
i mod the .inc for can modify the x and y of the text drawns but when i compile show this error
i added the variables pos1 pos2 but why dont work?.
Код:
/*x---------------------------------Important-------------------------------------x*/ //**INCLUDES**// #include <a_samp> /*x---------------------------------Defining-------------------------------------x*/ //**VARIABLES**// new pos1; new pos2; new Text:Text[100]; new gametextdrawforplayer; new gametextdraw; //**FORWARDS**// forward GameTextRemoval(textid); //**NATIVES**// /* native DisplayTextForPlayer(playerid, text[], time, font); native DisplayTextForAll(text[], time, font); */ /*x---------------------------------CallBacks-------------------------------------x*/ stock DisplayTextForPlayer(playerid, text[], time, font, pos1, pos2) // Max Fonts: 3(0-3) <-> Max Styles: 4(1-4) { if (gametextdrawforplayer >= 99) gametextdrawforplayer = 0; gametextdrawforplayer++; Text[gametextdrawforplayer] = TextDrawCreate(pos1,pos2,text); TextDrawAlignment(Text[gametextdrawforplayer],2); TextDrawBackgroundColor(Text[gametextdrawforplayer],0x000000ff); TextDrawFont(Text[gametextdrawforplayer],font); TextDrawLetterSize(Text[gametextdrawforplayer],0.600000,2.400000); TextDrawColor(Text[gametextdrawforplayer],0xffffffff); TextDrawSetOutline(Text[gametextdrawforplayer],1); TextDrawSetProportional(Text[gametextdrawforplayer],1); TextDrawSetShadow(Text[gametextdrawforplayer],1); TextDrawShowForPlayer(playerid,Text[gametextdrawforplayer]); SetTimerEx("GameTextRemoval",time*1000,false,"d",gametextdrawforplayer); } stock DisplayTextForAll(text[], time, font, pos1, pos2) // Max Fonts: 3(0-3) <-> Max Styles: 4(1-4) { if (gametextdraw >= 99) gametextdraw = 0; Text[gametextdraw] = TextDrawCreate(pos1, pos2,text); TextDrawAlignment(Text[gametextdraw],2); TextDrawBackgroundColor(Text[gametextdraw],0x000000ff); TextDrawFont(Text[gametextdraw],font); TextDrawLetterSize(Text[gametextdraw],0.600000,2.400000); TextDrawColor(Text[gametextdraw],0xffffffff); TextDrawSetOutline(Text[gametextdraw],1); TextDrawSetProportional(Text[gametextdraw],1); TextDrawSetShadow(Text[gametextdraw],1); TextDrawShowForAll(Text[gametextdraw]); SetTimerEx("GameTextRemoval",time*1000,false,"d",gametextdraw); } public GameTextRemoval(textid) { TextDrawDestroy(Text[textid]); return true; }
Quote:
Originally Posted by error
seif_text.inc(19) : warning 219: local variable "pos1" shadows a variable at a preceding level
seif_text.inc(19) : warning 219: local variable "pos2" shadows a variable at a preceding level seif_text.inc(36) : warning 219: local variable "pos1" shadows a variable at a preceding level seif_text.inc(36) : warning 219: local variable "pos2" shadows a variable at a preceding level ChrisDM.pwn(554) : warning 203: symbol is never used: "pos1" ChrisDM.pwn(554) : warning 203: symbol is never used: "pos2" |