RemiXdJ Posted March 17, 2011 Report Share Posted March 17, 2011 Pei...am luat un program de facut TextDraw'uri "BSN TextDraw Editor",si am facut un textdraw.Am pus:-new Text:Textd;- TextDrawHideForAll(Textd); TextDrawDestroy(Textd); return 1;}-Textd = TextDrawCreate(79.000000, 343.000000, "Textul"); TextDrawBackgroundColor(Textd , 255); TextDrawFont(Textd , 1); TextDrawLetterSize(Textd , 0.8, 5.6); TextDrawColor(Textd , 0x00C600FF); TextDrawSetOutline(Textd , 1); TextDrawSetProportional(Textd , 1); TextDrawSetShadow(Textd , 1); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, Textd); } } return 1;} Totul bagat sub "public OnGameModeInit()"Iar cand dau compile imi spune:-"C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(636) : error 010: invalid function or declarationC:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(644) : error 010: invalid function or declarationC:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(646) : error 010: invalid function or declarationC:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(651) : error 010: invalid function or declarationPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors."Ma puteti ajuta?Multumesc.PS:!!Am ajuns la 1 eroare:"C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(636) : error 010: invalid function or declarationPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error."Care este la linia: Textd = TextDrawCreate(79, 343, "Textulaici");PS:Am rezolvat eroarea dar cand intru in srv nu-mi apare text'ul Link to comment Share on other sites More sharing options...
insanezor Posted March 17, 2011 Report Share Posted March 17, 2011 Schimba TextDrawLetterSize(Textd , 0.8, 5.6); in TextDrawLetterSize(Textd , 0.8, 0.6); Link to comment Share on other sites More sharing options...
Scott_Williams Posted March 18, 2011 Report Share Posted March 18, 2011 Daca nu iti apare textul scrie asa sub liniile de la OnPlayerConnect : TextDrawShowForPlayer(playerid, numele textdrawului); Link to comment Share on other sites More sharing options...
RemiXdJ Posted March 22, 2011 Author Report Share Posted March 22, 2011 Da,mersi am rezolvat de mult.Puteti da TC. Link to comment Share on other sites More sharing options...
Question
RemiXdJ
Pei...am luat un program de facut TextDraw'uri "BSN TextDraw Editor",si am facut un textdraw.
Am pus:
-new Text:Textd;
- TextDrawHideForAll(Textd);
TextDrawDestroy(Textd);
return 1;
}
-Textd = TextDrawCreate(79.000000, 343.000000, "Textul");
TextDrawBackgroundColor(Textd , 255);
TextDrawFont(Textd , 1);
TextDrawLetterSize(Textd , 0.8, 5.6);
TextDrawColor(Textd , 0x00C600FF);
TextDrawSetOutline(Textd , 1);
TextDrawSetProportional(Textd , 1);
TextDrawSetShadow(Textd , 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textd);
}
}
return 1;
}
Totul bagat sub "public OnGameModeInit()"
Iar cand dau compile imi spune:
-"C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(636) : error 010: invalid function or declaration
C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(644) : error 010: invalid function or declaration
C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(646) : error 010: invalid function or declaration
C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(651) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
"
Ma puteti ajuta?
Multumesc.
PS:!!Am ajuns la 1 eroare:
"C:\Users\Mihai\Desktop\samp03\gamemodes\SRV.pwn(636) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
"
Care este la linia:
Textd = TextDrawCreate(79, 343, "Textulaici");
PS:Am rezolvat eroarea dar cand intru in srv nu-mi apare text'ul
Link to comment
Share on other sites
3 answers to this question
Recommended Posts