Servercrash
#1

my server crashed at Textdraws, whats wrong?



--------------------------

SA-MP Server: 0.3a R7



Exception At Address: 0x00482D44



Registers:

EAX: 0x00000000 EBX: 0x00000400 ECX: 0x00000100 EDX: 0x7EFEFEFF

ESI: 0x00000000 EDI: 0x01E00850 EBP: 0x00000002 ESP: 0x0012FD28

EFLAGS: 0x00010206



Stack:

+0000: 0x02620020 0x01EA8A78 0x01E00850 0x004743BB

+0010: 0x01E00850 0x00000000 0x00000400 0x0170B238

+0020: 0x00000000 0x0012FD80 0x02DBD030 0x00000002

+0030: 0x0046597E 0x4408C000 0x41B00000 0x00000000

+0040: 0x0170B238 0x0170B238 0x0273228C 0x02620020

+0050: 0x00000000 0x02DBD108 0x027A93DC 0x00401096

+0060: 0x0170B238 0x02DBD030 0x028C5BF8 0x00402BB3

+0070: 0x0170B238 0x0000004A 0x0012FDB8 0x02DBD030

+0080: 0x013AE5C0 0x00000000 0x00000000 0x0170B238

+0090: 0x00000016 0x0000000A 0x004F7438 0x004F7818

+00A0: 0x004F381C 0x004F7800 0x004F381C 0x0273228C

+00B0: 0x028C5BF8 0x00000000 0x02730020 0x0019396C

+00C0: 0x0046DE4A 0x0170B238 0x0012FE18 0x000000E3

+00D0: 0x013A8ED0 0x76ECEF66 0x3BA3E6D8 0x013A83F8

+00E0: 0x013AE5C0 0x000000E3 0x013A83F8 0x013AE5E0

+00F0: 0x013A8ED0 0x0047C944 0x00000005 0x76ECEFA0

+0100: 0x76ECF26E 0x00000000 0x3BA3E6D8 0x0047931C

+0110: 0x00000000 0x00001DB0 0x0012FF88 0x7FFDF000

+0120: 0x0000F000 0x00010101 0x00000032 0x00001E61

+0130: 0x00000078 0x00000EC4 0x013A8ED0 0x656D6167



pawn Код:
new time[3], c[30], test[50];
  gettime(time[0], time[1], time[2]);
  TextDrawDestroy(clock);
  if(time[1] < 10)
  {
    format(c, sizeof(c),"%d:0%d", time[0], time[1]);
    clock = TextDrawCreate(547.000000, 22.000000, c);
        TextDrawAlignment(clock, 0);
        TextDrawBackgroundColor(clock, 0x000000ff);
        TextDrawFont(clock, 3);
        TextDrawLetterSize(clock, 0.599999, 1.900000);
        TextDrawColor(clock, 0xffffffff);
        TextDrawSetOutline(clock, 1);
        TextDrawSetProportional(clock, 1);
        TextDrawSetShadow(clock, 1);
  }
  else
  {
    clock = TextDrawCreate(547.000000, 22.000000, c);
        TextDrawAlignment(clock, 0);
        TextDrawBackgroundColor(clock, 0x000000ff);
        TextDrawFont(clock, 3);
        TextDrawLetterSize(clock, 0.599999, 1.900000);
        TextDrawColor(clock, 0xffffffff);
        TextDrawSetOutline(clock, 1);
        TextDrawSetProportional(clock, 1);
        TextDrawSetShadow(clock, 1);
    }

    //tmphour = shifthour;
    for(new i=0;i<MAX_PLAYERS;i++)
    {
      TextDrawShowForPlayer(i, clock);
    if(PlayerInfo[i][pDonateRank] > 1)
        {
          format(test, sizeof(test), "~r~PayDay Zeit: ~w~%d/50",PlayerInfo[i][pPayDayTime]);
            paydaytext[i] = TextDrawCreate(454,425, test);
            TextDrawAlignment(paydaytext[i], 0);
            TextDrawBackgroundColor(paydaytext[i], 0x000000ff);
            TextDrawFont(paydaytext[i], 3);
            TextDrawSetOutline(paydaytext[i], 1);
            TextDrawSetProportional(paydaytext[i], 1);
            TextDrawSetShadow(paydaytext[i], 1);
            TextDrawShowForPlayer(i, paydaytext[i]);

        }
        else
        {
            format(test, sizeof(test), "~r~PayDay Zeit: ~w~%d/60",PlayerInfo[i][pPayDayTime]);
            paydaytext[i] = TextDrawCreate(454,425, test);
            TextDrawAlignment(paydaytext[i], 0);
            TextDrawBackgroundColor(paydaytext[i], 0x000000ff);
            TextDrawFont(paydaytext[i], 3);
            TextDrawSetOutline(paydaytext[i], 1);
            TextDrawSetProportional(paydaytext[i], 1);
            TextDrawSetShadow(paydaytext[i], 1);
            TextDrawShowForPlayer(i, paydaytext[i]);
        }
Reply
#2

Wrong place to post this, post it in client support.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)