04.05.2011, 19:54
i HAVE A big problem with textdraw i compile the script and i dont have any errors or warings but when i start the server it comes me CRASHINFO
Her are the TexTDraw
new Text:Textdraw108;
new Text:Textdraw109;
new Text:Textdraw5;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw23;
new Text:Textdraw24;
#define BLUE 0x8D8DFFAA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Textdraw108 = TextDrawCreate(70.000000, 210.000000, "Ime i Prezime : %s!!!");
TextDrawBackgroundColor(Textdraw108, 16777215);
TextDrawFont(Textdraw108, 2);
TextDrawLetterSize(Textdraw108, 0.389999, 1.000000);
TextDrawColor(Textdraw108, -1);
TextDrawSetOutline(Textdraw108, 0);
TextDrawSetProportional(Textdraw108, 1);
TextDrawSetShadow(Textdraw108, 0);
Textdraw109 = TextDrawCreate(700.000000, -10.000000, "");
TextDrawAlignment(Textdraw109, 3);
TextDrawBackgroundColor(Textdraw109, 255);
TextDrawFont(Textdraw109, 1);
TextDrawLetterSize(Textdraw109, 2.299998, 54.000000);
TextDrawColor(Textdraw109, 255);
TextDrawSetOutline(Textdraw109, 0);
TextDrawSetProportional(Textdraw109, 1);
TextDrawSetShadow(Textdraw109, 1);
TextDrawUseBox(Textdraw109, 1);
TextDrawBoxColor(Textdraw109, 255);
TextDrawTextSize(Textdraw109, 10.000000, 10.000000);
Textdraw5 = TextDrawCreate(455.000000, 231.000000, "Informacije Igraca :");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.410000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
Textdraw13 = TextDrawCreate(469.000000, 341.000000, "Level :");
TextDrawAlignment(Textdraw13, 2);
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 1);
TextDrawLetterSize(Textdraw13, 0.500000, 1.000000);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
TextDrawUseBox(Textdraw13, 1);
TextDrawBoxColor(Textdraw13, 1162036223);
TextDrawTextSize(Textdraw13, 0.000000, 23.000000);
Textdraw14 = TextDrawCreate(469.000000, 357.000000, "Sati igranja :");
TextDrawAlignment(Textdraw14, 2);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.500000, 1.000000);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
TextDrawUseBox(Textdraw14, 1);
TextDrawBoxColor(Textdraw14, 1162036223);
TextDrawTextSize(Textdraw14, 0.000000, 23.000000);
Textdraw23 = TextDrawCreate(469.000000, 374.000000, "Respekti :");
TextDrawAlignment(Textdraw23, 2);
TextDrawBackgroundColor(Textdraw23, 255);
TextDrawFont(Textdraw23, 1);
TextDrawLetterSize(Textdraw23, 0.500000, 1.000000);
TextDrawColor(Textdraw23, -1);
TextDrawSetOutline(Textdraw23, 0);
TextDrawSetProportional(Textdraw23, 1);
TextDrawSetShadow(Textdraw23, 1);
TextDrawUseBox(Textdraw23, 1);
TextDrawBoxColor(Textdraw23, 1162036223);
TextDrawTextSize(Textdraw23, 0.000000, 23.000000);
Textdraw24 = TextDrawCreate(458.000000, 198.000000, "I bla bla jos nesto");
TextDrawAlignment(Textdraw24, 2);
TextDrawBackgroundColor(Textdraw24, 255);
TextDrawFont(Textdraw24, 1);
TextDrawLetterSize(Textdraw24, 0.390000, 1.000000);
TextDrawColor(Textdraw24, -1);
TextDrawSetOutline(Textdraw24, 0);
TextDrawSetProportional(Textdraw24, 1);
TextDrawSetShadow(Textdraw24, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw10;
TextDrawShowForPlayer(i, Textdraw109);
TextDrawShowForPlayer(i, Textdraw13);
TextDrawShowForPlayer(i, Textdraw14);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw23);
TextDrawShowForPlayer(i, Textdraw24);
}
}
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(Textdraw10;
TextDrawDestroy(Textdraw10;
TextDrawHideForAll(Textdraw109);
TextDrawDestroy(Textdraw109);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
TextDrawHideForAll(Textdraw23);
TextDrawDestroy(Textdraw23);
TextDrawHideForAll(Textdraw24);
TextDrawDestroy(Textdraw24);
TextDrawHideForAll(Textdraw13);
TextDrawDestroy(Textdraw13);
TextDrawHideForAll(Textdraw14);
TextDrawDestroy(Textdraw14);
return 1;
}
and her the chras info
--------------------------
SA-MP Server: 0.3c
Exception At Address: 0x004A4B44
Registers:
EAX: 0x00000000 EBX: 0x00000400 ECX: 0x00000100 EDX: 0x7EFEFEFF
ESI: 0x00000000 EDI: 0x010460E8 EBP: 0x00000001 ESP: 0x0012FD60
EFLAGS: 0x00010216
Stack:
+0000: 0x01550020 0x010460B8 0x010460E8 0x0047CFFB
+0010: 0x010460E8 0x00000000 0x00000400 0x01045A88
+0020: 0x00000000 0x0012FDB8 0x0105311C 0x00000001
+0030: 0x0048837E 0x442F0000 0xC1200000 0x00000000
+0040: 0x01045A88 0x01045A88 0x0104D474 0x01550020
+0050: 0x00000000 0x0104EF98 0x0104D734 0x00401096
+0060: 0x01045A88 0x0105311C 0x0104ED44 0x00402BB3
+0070: 0x01045A88 0x00000003 0x0012FDF0 0x0105311C
+0080: 0x004F52B0 0x01045A88 0x00000001 0x00000000
+0090: 0x00000001 0x000043DC 0x000043D8 0x000043F4
+00A0: 0x000003F8 0x000043E8 0x000003F8 0x0104D474
+00B0: 0x0104ED44 0x00000000 0x0104CDC0 0x000018D0
+00C0: 0x00483D74 0x01045A88 0x0012FE38 0x00000002
+00D0: 0x00B67530 0xFFFFFFFF 0x00000002 0x00B67530
+00E0: 0x00498D72 0x004F52B0 0x004C06B9 0x00B674F1
+00F0: 0xFFFFFFFF 0x00000000 0x01045A88 0x0012FEDC
+0100: 0x004B4998 0xFFFFFFFF 0x004981AF 0x00000001
+0110: 0x00000000 0x00000A28 0x0012FFC0 0x7FFDE000
+0120: 0x00002BA3 0x00010101 0x00000032 0x00001E62
+0130: 0x00000070 0x00001580 0x00B67530 0x656D6167
pleas help me somebody i relly need it !
Her are the TexTDraw
new Text:Textdraw108;
new Text:Textdraw109;
new Text:Textdraw5;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw23;
new Text:Textdraw24;
#define BLUE 0x8D8DFFAA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Textdraw108 = TextDrawCreate(70.000000, 210.000000, "Ime i Prezime : %s!!!");
TextDrawBackgroundColor(Textdraw108, 16777215);
TextDrawFont(Textdraw108, 2);
TextDrawLetterSize(Textdraw108, 0.389999, 1.000000);
TextDrawColor(Textdraw108, -1);
TextDrawSetOutline(Textdraw108, 0);
TextDrawSetProportional(Textdraw108, 1);
TextDrawSetShadow(Textdraw108, 0);
Textdraw109 = TextDrawCreate(700.000000, -10.000000, "");
TextDrawAlignment(Textdraw109, 3);
TextDrawBackgroundColor(Textdraw109, 255);
TextDrawFont(Textdraw109, 1);
TextDrawLetterSize(Textdraw109, 2.299998, 54.000000);
TextDrawColor(Textdraw109, 255);
TextDrawSetOutline(Textdraw109, 0);
TextDrawSetProportional(Textdraw109, 1);
TextDrawSetShadow(Textdraw109, 1);
TextDrawUseBox(Textdraw109, 1);
TextDrawBoxColor(Textdraw109, 255);
TextDrawTextSize(Textdraw109, 10.000000, 10.000000);
Textdraw5 = TextDrawCreate(455.000000, 231.000000, "Informacije Igraca :");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.410000, 1.000000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
Textdraw13 = TextDrawCreate(469.000000, 341.000000, "Level :");
TextDrawAlignment(Textdraw13, 2);
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 1);
TextDrawLetterSize(Textdraw13, 0.500000, 1.000000);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
TextDrawUseBox(Textdraw13, 1);
TextDrawBoxColor(Textdraw13, 1162036223);
TextDrawTextSize(Textdraw13, 0.000000, 23.000000);
Textdraw14 = TextDrawCreate(469.000000, 357.000000, "Sati igranja :");
TextDrawAlignment(Textdraw14, 2);
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.500000, 1.000000);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
TextDrawUseBox(Textdraw14, 1);
TextDrawBoxColor(Textdraw14, 1162036223);
TextDrawTextSize(Textdraw14, 0.000000, 23.000000);
Textdraw23 = TextDrawCreate(469.000000, 374.000000, "Respekti :");
TextDrawAlignment(Textdraw23, 2);
TextDrawBackgroundColor(Textdraw23, 255);
TextDrawFont(Textdraw23, 1);
TextDrawLetterSize(Textdraw23, 0.500000, 1.000000);
TextDrawColor(Textdraw23, -1);
TextDrawSetOutline(Textdraw23, 0);
TextDrawSetProportional(Textdraw23, 1);
TextDrawSetShadow(Textdraw23, 1);
TextDrawUseBox(Textdraw23, 1);
TextDrawBoxColor(Textdraw23, 1162036223);
TextDrawTextSize(Textdraw23, 0.000000, 23.000000);
Textdraw24 = TextDrawCreate(458.000000, 198.000000, "I bla bla jos nesto");
TextDrawAlignment(Textdraw24, 2);
TextDrawBackgroundColor(Textdraw24, 255);
TextDrawFont(Textdraw24, 1);
TextDrawLetterSize(Textdraw24, 0.390000, 1.000000);
TextDrawColor(Textdraw24, -1);
TextDrawSetOutline(Textdraw24, 0);
TextDrawSetProportional(Textdraw24, 1);
TextDrawSetShadow(Textdraw24, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw10;
TextDrawShowForPlayer(i, Textdraw109);
TextDrawShowForPlayer(i, Textdraw13);
TextDrawShowForPlayer(i, Textdraw14);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Textdraw23);
TextDrawShowForPlayer(i, Textdraw24);
}
}
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(Textdraw10;
TextDrawDestroy(Textdraw10;
TextDrawHideForAll(Textdraw109);
TextDrawDestroy(Textdraw109);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
TextDrawHideForAll(Textdraw23);
TextDrawDestroy(Textdraw23);
TextDrawHideForAll(Textdraw24);
TextDrawDestroy(Textdraw24);
TextDrawHideForAll(Textdraw13);
TextDrawDestroy(Textdraw13);
TextDrawHideForAll(Textdraw14);
TextDrawDestroy(Textdraw14);
return 1;
}
and her the chras info
--------------------------
SA-MP Server: 0.3c
Exception At Address: 0x004A4B44
Registers:
EAX: 0x00000000 EBX: 0x00000400 ECX: 0x00000100 EDX: 0x7EFEFEFF
ESI: 0x00000000 EDI: 0x010460E8 EBP: 0x00000001 ESP: 0x0012FD60
EFLAGS: 0x00010216
Stack:
+0000: 0x01550020 0x010460B8 0x010460E8 0x0047CFFB
+0010: 0x010460E8 0x00000000 0x00000400 0x01045A88
+0020: 0x00000000 0x0012FDB8 0x0105311C 0x00000001
+0030: 0x0048837E 0x442F0000 0xC1200000 0x00000000
+0040: 0x01045A88 0x01045A88 0x0104D474 0x01550020
+0050: 0x00000000 0x0104EF98 0x0104D734 0x00401096
+0060: 0x01045A88 0x0105311C 0x0104ED44 0x00402BB3
+0070: 0x01045A88 0x00000003 0x0012FDF0 0x0105311C
+0080: 0x004F52B0 0x01045A88 0x00000001 0x00000000
+0090: 0x00000001 0x000043DC 0x000043D8 0x000043F4
+00A0: 0x000003F8 0x000043E8 0x000003F8 0x0104D474
+00B0: 0x0104ED44 0x00000000 0x0104CDC0 0x000018D0
+00C0: 0x00483D74 0x01045A88 0x0012FE38 0x00000002
+00D0: 0x00B67530 0xFFFFFFFF 0x00000002 0x00B67530
+00E0: 0x00498D72 0x004F52B0 0x004C06B9 0x00B674F1
+00F0: 0xFFFFFFFF 0x00000000 0x01045A88 0x0012FEDC
+0100: 0x004B4998 0xFFFFFFFF 0x004981AF 0x00000001
+0110: 0x00000000 0x00000A28 0x0012FFC0 0x7FFDE000
+0120: 0x00002BA3 0x00010101 0x00000032 0x00001E62
+0130: 0x00000070 0x00001580 0x00B67530 0x656D6167
pleas help me somebody i relly need it !