[CRASH] Antes de Spawn
#1

Quote:

SA-MP 0.3e
Exception At Address: 0x002E7365

Registers:
EAX: 0xFFFF003D EBX: 0x0EBA6239 ECX: 0x0000FFFF EDX: 0xFFFFFFFF
ESI: 0x4320B6DC EDI: 0x410C0000 EBP: 0x7648F9B0 ESP: 0x0028FB2C
EFLAGS: 0x00010216

Stack:
+0000: 0x002E7365 0x786F4220 0x002E7365 0x7E20424D
+0010: 0x6F547E77 0x64694820 0x68542065 0x42207365
+0020: 0x7365786F 0x7365002E 0x2E73002E 0x73657800
+0030: 0x7365002E 0x6578002E 0x65002E73 0x6F422073
+0040: 0x2E736578 0x73002E00 0x2E73002E 0x002E7300
+0050: 0x0EBA6239 0x0EBA6239 0xFFFFFFFF 0xFFFFFFFF
+0060: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
+0070: 0x0EBA6239 0x00000001 0x0EB54840 0x000003ED
+0080: 0x410C0000 0x4320B6DC 0x40C80000 0x3ACCCCCD
+0090: 0x43610000 0x3B124925 0x03F97C06 0x00000000
+00A0: 0x00000000 0x0401784B 0x0529DF98 0x00000000
+00B0: 0x00000000 0x412D8106 0x0028FC58 0x00000B7C
+00C0: 0x01A293B8 0x00000000 0x00000000 0x006E8713
+00D0: 0x4537C000 0xBEC08000 0xC4D51604 0x412D8106
+00E0: 0x0028FC58 0x00000A88 0x00000000 0x452879FC
+00F0: 0x00C7DDF8 0x00000001 0x00000001 0x00724D4F
+0100: 0x00C7DE28 0x00C7DDF8 0x00725921 0xC4F90920
+0110: 0x437B1595 0x420CB007 0x40000000 0x00BA873E
+0120: 0xF4A460FF 0x7648F9B0 0x00000001 0x03D908D8
+0130: 0x00000000 0xC4F90920 0x437B1595 0x420CB007
+0140: 0x452879FC 0xC4D51604 0x412D8106 0x00000000
+0150: 0x00B7CD98 0x0000021B 0x0072859C 0x00000001
+0160: 0x00000000 0x00000005 0x00C80468 0x00000004
+0170: 0x00584954 0x00000000 0x44012C28 0x42CF559A
+0180: 0x44020E05 0x00725BF5 0x00020001 0x41600000
+0190: 0xC4D51604 0x40000000 0x000000FF 0x00000000
+01A0: 0x00000000 0x0000004C 0x00000800 0x3E4CCCCD
+01B0: 0x00000001 0x00000000 0x00000000 0x00000000
+01C0: 0x00000000 0x00585CE9 0x00020001 0x00000001
+01D0: 0x00BA8720 0x40000000 0x000000FF 0x04018A94
+01E0: 0x00000008 0x00585C2C 0x00000008 0x00000001
+01F0: 0x00000000 0x00000000 0x00000000 0x7648F9B0
+0200: 0x00000000 0x000000AF 0x80000000 0x00000000
+0210: 0x42D98000 0x43FFCDB7 0x00000000 0x432C8000
+0220: 0x43FFCDB7 0xC4F90920 0x437B1595 0x420CB007
+0230: 0x00000000 0x00000000 0x0058FCE9 0x00000001
+0240: 0x0053E504 0x00000001 0x00000001 0x7648F9B0
+0250: 0x0028FD90 0x00000000 0x045D4640 0x00B6F028
+0260: 0x04029ADC 0x0000001A 0x00000001 0x00000000
+0270: 0x0053EB17 0x43C80000 0x43960000 0x0053ECC2

SCM Op: 0x470, lDbg: 0

Game Version: EU 1.0

State Information: Ped Context: 0

El codigo en OnPlayerSpawn(playerid):
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid, 0);
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    if(gTeam[playerid] == CIVILIAN)
    {
        SetPlayerColor(playerid, WHITE);
        new file[256];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), "%s.cnr", name);
        new position = random(sizeof(CivilianSpawn));
        SetPlayerPos(playerid, CivilianSpawn[position][0], CivilianSpawn[position][1], CivilianSpawn[position][2]);
        SetPlayerFacingAngle(playerid, CivilianSpawn[position][3]);
        SetCameraBehindPlayer(playerid);
        TextDrawSetString(INFOBOX[playerid], "~y~Civilian Help~n~~n~~w~As A Civilian, Your Job Is~n~To Rob Banks, Casinos, Stores,~n~People, And Get Away From~n~The~b~Police~w~~n~You Can Also Take On Legal~n~~w~Jobs.Such As Truck Driving,~n~~w~Bus Driving And Taxi Driving~n~~n~~w~/hits, /hit, /blow, /blowcar~n~~n~~w~For A Full List Of Commands,~n~~w~Type /cmds~n~~n~Use ~r~LMB ~w~To Hide Thes Boxes.");
        TextDrawShowForPlayer(playerid, INFOBOX[playerid]);
        TogglePlayerControllable(playerid, true);
        GivePlayerWeapon(playerid,5,1);
    }
    Spawned[playerid] = 1;
    return true;
}
Esto empezo despues de poner el TextDraw, pero no veo el problema.
Reply
#2

їNo crees que el TextDraw es un poquito largo?
Reply
#3

Pues bueno, segun la wiki (https://sampwiki.blast.hk/wiki/Limits) se permiten 1024 caracteres en la string, y segun esta pagina(http://www.string-functions.com/length.aspx) tiene solo 355 caracteres. Entonces, si la info es real no creo que sea eso.
Reply
#4

1024 es el numero de textdraws que puedes crear, no el numero de caracteres, el texto es muy largo para 1 solo textdraw.
Reply
#5

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
1024 es el numero de textdraws que puedes crear, no el numero de caracteres, el texto es muy largo para 1 solo textdraw.
Pues bueno, ahi dice String Length que es el tamaсo del textdraw, y 1024 characters que es 1024 caracteres, es decir letras, pero pues intentare reducirlo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)