Little help!
#1

Hello everybody.I have problem with suming weapon skill levels...When I add variable +1 it`s not adding that number he is just reading from variable.Here is code please check it:

pawn Код:
if(GetPlayerWeapon(killerid) == 24) // deagle
    {
        SetPlayerSkillLevel(killerid,2,pInfo[killerid][pSkillDesert]+1);
        format(slova,sizeof(slova),"{D4FF00}[Gun Skills] {FFFFFF}Your current skill level of Desert-Deagle is: %d .",pInfo[killerid][pSkillDesert]);
        SendClientMessage(killerid,0xFFFFFFFF,slova);
    }
Reply
#2

Use += 1.
Reply
#3

pawn Код:
SetPlayerSkillLevel(killerid,2,pInfo[killerid][pSkillDesert]+1);
Instead of this do it
pawn Код:
pInfo[killerid][pSkillDesert] ++;
Reply
#4

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Use += 1.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)