Whats wrong
#1

Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Код:
 DELETE
Reply
#2

And i have tried to delete "else" if CODE

But it dosent work in game either then.
Reply
#3

You now you are calling brassknuckes underneath Katana?
Reply
#4

yea? why
Reply
#5

I fixed the errors, but i cant create the guns. I can create the knife, but not the other ones!
Reply
#6

Quote:
Originally Posted by Tutrix
Посмотреть сообщение
I fixed the errors, but i cant create the guns. I can create the knife, but not the other ones!
You know you are giving them one bullet?
Reply
#7

Quote:
Originally Posted by _rAped
Посмотреть сообщение
You know you are giving them one bullet?
Yes... You can't have 1337 knives, only 1.
Reply
#8

Youre kinda blind for not noticing how your brakets are so fucked up

pawn Код:
else if(strcmp(creategun, "knife", true) == 0)
    {
        if(PlayerInfo[playerid][pMats] > 24)
        {
            GivePlayerWeapon(playerid, 4, 1 );
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
        }
    }
    else if(strcmp(creategun, "bat", true) == 0)
    {
        if(PlayerInfo[playerid][pMats] > 24)
        {
            GivePlayerWeapon(playerid, 5, 1 );
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
        }
    }
    else if(strcmp(creategun, "katana", true) == 0)
    {
        if(PlayerInfo[playerid][pMats] > 49)
        {
            GivePlayerWeapon(playerid, 8, 1);
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " Not enough Materials1");
        }
    }
    else if(strcmp(creategun, "brassknuckles", true) == 0)
    {
        if(PlayerInfo[playerid][pMats]  > 24)
        {
            GivePlayerWeapon(playerid, 1, 1);
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
            return 1;
        }
    }
Reply
#9

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Yes... You can't have 1337 knives, only 1.
That's true I just assumed he had guns in that creategun command.
Reply
#10

Works perfect ! Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)