#1

My samp.server.exe Crash when i type /setskin
pawn Код:
if(strcmp(cmd, "/setskin", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setskin [playerid/PartOfName] [skin id]");
                return 1;
            }
            new para1;
            new level;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            level = strval(tmp);
            if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); return 1; }
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));

                        PlayerInfo[para1][pModel] = level;
                        format(string, sizeof(string), "** Administrator %s Has Changed Your Skin.", sendername);
                        SendClientMessage(para1, TEAM_GROVE_COLOR, string);
                        format(string, sizeof(string), "** You Granted %s skin number %d.", giveplayer,level);
                        SendClientMessage(playerid, COLOR_ORANGE, string);
                        format(string, sizeof(string), "[ADMIN]: %s Gave The Skin [%d] to %s (%d).",sendername, level, giveplayer, para1);
                        ABroadCast(COLOR_LIGHTRED,string, 5);
                        SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
                        new y, m, d;
                        new h,mi,s;
                        getdate(y,m,d);
                        gettime(h,mi,s);
                        format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Gave The Skin [%d] to %s",d,m,y,h,mi,s,sendername,level,giveplayer);
                        GiveLog(string);
                    }
                }//not connected
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;
    }
Im not sure cuz maybe it got some errors i added this
pawn Код:
public IsValidSkin(skinid)
{
    #define MAX_BAD_SKINS 22
    new badSkins[MAX_BAD_SKINS] =
    { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289 };
    if (skinid < 0 || skinid > 299) return false;
    for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; }
    #undef MAX_BAD_SKINS
    return 1;
}
Reply
#2

Код:
--------------------------

SA-MP Server: 0.3d-R2



Exception At Address: 0x77C377B2



Registers:

EAX: 0x00000024	EBX: 0x00000028	ECX: 0x004D6430	EDX: 0x00000000

ESI: 0x00000024	EDI: 0x00000020	EBP: 0x0012F5D4	ESP: 0x0012F5C0

EFLAGS: 0x00010212



Stack:

+0000: 0x039EAD9C   0x00000000   0x0012F608   0x004978D5

+0010: 0x0012F600   0x0012F610   0x0048DA4E   0x00000020

+0020: 0x0048E09E   0x00000000   0x039EAD9C   0x00000000

+0030: 0x00000028   0x00000FFF   0x0012F5E8   0x0012F1CC

+0040: 0x0012F818   0x004920A8   0x004ACCB0   0xFFFFFFFF

+0050: 0x00000000   0x0040534E   0x00000028   0x00000000

+0060: 0x039EAD8C   0x0012F640   0x031D2664   0x0040578F

+0070: 0x00000001   0x01421628   0x01421628   0x00000034

+0080: 0x034651EC   0x004010B6   0x01421628   0x039EAD9C

+0090: 0x034688A8   0x00402B63   0x01421628   0x0000000E

+00A0: 0x0012F678   0x039EAD8C   0x00000000   0x01421628

+00B0: 0x00000000   0x0201A801   0x00000000   0x005824E4

+00C0: 0x005824E4   0x00582EDC   0x0057EF08   0x00582814

+00D0: 0x0057EF08   0x031D2664   0x034688A8   0x00000000

+00E0: 0x031D0020   0x00296244   0x0046C760   0x01421628

+00F0: 0x0012F6E0   0x0000005D   0x01421628   0x00000000

+0100: 0x01421628   0x0012F6F0   0x0012F6E4   0x02EBC660

+0110: 0x039E7788   0x00000000   0x00000000   0x02EBC660

+0120: 0x00000000   0x039E7788   0x00487C44   0x0000005D

+0130: 0x0057EEE0   0x0012F82C   0x013B14A8   0x0012FC54



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

SA-MP Server: 0.3d-R2



Exception At Address: 0x77297732



Registers:

EAX: 0x00000024	EBX: 0x00000028	ECX: 0x004D6430	EDX: 0x00000000

ESI: 0x00000024	EDI: 0x00000020	EBP: 0x0012F5D4	ESP: 0x0012F5C0

EFLAGS: 0x00010212



Stack:

+0000: 0x04E36800   0x00000000   0x0049FF0B   0x004978D5

+0010: 0x0012F600   0x0012F610   0x0048DA4E   0x00000020

+0020: 0x0048E09E   0x00000000   0x04E36800   0x00000000

+0030: 0x00000028   0x00000FFF   0x0012F5E8   0x0012F1CC

+0040: 0x0012F818   0x004920A8   0x004ACCB0   0xFFFFFFFF

+0050: 0x00000000   0x0040534E   0x00000028   0x00000000

+0060: 0x04E367F0   0x0012F640   0x045E2674   0x0040578F

+0070: 0x00000001   0x037F0558   0x037F0558   0x00000048

+0080: 0x048AEF94   0x004010B6   0x037F0558   0x04E36800

+0090: 0x048B2718   0x00402B63   0x037F0558   0x0000000E

+00A0: 0x0012F678   0x04E367F0   0x00000000   0x037F0558

+00B0: 0x00000000   0x09F29B01   0x00000000   0x005840D8

+00C0: 0x005840D8   0x00584AD4   0x00580B0C   0x00584408

+00D0: 0x00580B0C   0x045E2674   0x048B2718   0x00000000

+00E0: 0x045E0020   0x002D00A4   0x0046C760   0x037F0558

+00F0: 0x0012F6E0   0x0000005E   0x037F0558   0x00000000

+0100: 0x037F0558   0x0012F6F0   0x0012F6E4   0x03AFA018

+0110: 0x04E331F0   0x00000000   0x00000000   0x03AFA018

+0120: 0x00000000   0x04E331F0   0x00487C44   0x0000005E

+0130: 0x00580AD8   0x0012F82C   0x017C14C8   0x0012FC54



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

SA-MP Server: 0.3d-R2



Exception At Address: 0x77297732



Registers:

EAX: 0x00000024	EBX: 0x00000028	ECX: 0x004D6430	EDX: 0x00000000

ESI: 0x00000024	EDI: 0x00000020	EBP: 0x0012F5D0	ESP: 0x0012F5BC

EFLAGS: 0x00010212



Stack:

+0000: 0x04C86800   0x00000000   0x0012F814   0x004978D5

+0010: 0x0012F5FC   0x0012F60C   0x0048DA4E   0x00000020

+0020: 0x0048E09E   0x00000000   0x04C86800   0x00000000

+0030: 0x00000028   0x00000FFF   0x0012F5E4   0x0012F1C8

+0040: 0x0012F814   0x004920A8   0x004ACCB0   0xFFFFFFFF

+0050: 0x00000000   0x0040534E   0x00000028   0x00000000

+0060: 0x04C867F0   0x0012F63C   0x04432674   0x0040578F

+0070: 0x00000001   0x013B1490   0x013B1490   0x00000048

+0080: 0x046FEF94   0x004010B6   0x013B1490   0x04C86800

+0090: 0x04702718   0x00402B63   0x013B1490   0x0000000E

+00A0: 0x0012F674   0x04C867F0   0x00000010   0x013B1490

+00B0: 0x00000010   0x09F29B01   0x00000000   0x005840D8

+00C0: 0x005840D8   0x00584AD4   0x00580B10   0x00584408

+00D0: 0x00580B10   0x04432674   0x04702718   0x00000000

+00E0: 0x04430020   0x002D00A4   0x0046C760   0x013B1490

+00F0: 0x0012F6DC   0x0000005E   0x013B1490   0x00000010

+0100: 0x013B1490   0x0012F6EC   0x0012F6E0   0x0363C968

+0110: 0x04C831F0   0x00000000   0x00000010   0x0363C968

+0120: 0x00000000   0x04C831F0   0x00487C44   0x0000005E

+0130: 0x00580AD8   0x0012F828   0x013514C8   0x0012FC54



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

SA-MP Server: 0.3d-R2



Exception At Address: 0x77297732



Registers:

EAX: 0x00000024	EBX: 0x00000028	ECX: 0x004D6430	EDX: 0x00000000

ESI: 0x00000024	EDI: 0x00000020	EBP: 0x0012F5D0	ESP: 0x0012F5BC

EFLAGS: 0x00010212



Stack:

+0000: 0x04E86800   0x00000000   0x0012F814   0x004978D5

+0010: 0x0012F5FC   0x0012F60C   0x0048DA4E   0x00000020

+0020: 0x0048E09E   0x00000000   0x04E86800   0x00000000

+0030: 0x00000028   0x00000FFF   0x0012F5E4   0x0012F1C8

+0040: 0x0012F814   0x004920A8   0x004ACCB0   0xFFFFFFFF

+0050: 0x00000000   0x0040534E   0x00000028   0x00000000

+0060: 0x04E867F0   0x0012F63C   0x04632674   0x0040578F

+0070: 0x00000001   0x01441490   0x01441490   0x00000048

+0080: 0x048FEF94   0x004010B6   0x01441490   0x04E86800

+0090: 0x04902718   0x00402B63   0x01441490   0x0000000E

+00A0: 0x0012F674   0x04E867F0   0x00000010   0x01441490

+00B0: 0x00000010   0x09F29B01   0x00000000   0x005840D8

+00C0: 0x005840D8   0x00584AD4   0x00580B10   0x00584408

+00D0: 0x00580B10   0x04632674   0x04902718   0x00000000

+00E0: 0x04630020   0x002D00A4   0x0046C760   0x01441490

+00F0: 0x0012F6DC   0x0000005E   0x01441490   0x00000010

+0100: 0x01441490   0x0012F6EC   0x0012F6E0   0x03AA9BE0

+0110: 0x04E831F0   0x00000000   0x00000010   0x03AA9BE0

+0120: 0x00000000   0x04E831F0   0x00487C44   0x0000005E

+0130: 0x00580AD8   0x0012F828   0x013E14C8   0x0012FC54
Reply
#3

Any help?
Reply
#4

No one helping
P.S: Sorry for bumping
Reply
#5

Again sorry for bumping arent there any helper?THat can help me!
Reply
#6

Don't bump you bump in 4:32AM and today you bump again at 11:38AM and once again you bump at 11:52AM thats multi-bumping. and show me your error i will try all my best
Reply
#7

up there
Reply
#8

how about use ZCMD and sscanf for awhile?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)