Exp. Points at Payday [urgent]
#1

Hey Guys - Alright , Here is the Problem - I am editing a GF [Not NGRP] , Anyway.. I Want to make that on the payday Instead of getting 1 Respect point you get two - But i really can't find that - Anyway.. here is the Code of the payday :

PHP код:
                    //EXP
                    
PlayerInfo[i][pExp]++; //experience points
                    
SendClientMessage(iCOLOR_WHITE"|___ BANK STATEMENT ___|");
                    
format(stringsizeof(string), "  Paycheck: $%d"checks);
                    
SendClientMessage(iCOLOR_GRAD1string);
                    
format(stringsizeof(string), "  Income Tax: -$%d"incometax);
                    
SendClientMessage(iCOLOR_GRAD1string);
                    if(
PlayerInfo[i][pPhousekey] >= 1
There are more up and down but it's not needed as it's the tax / house / biz Electricity etc. , Anyway - I Think the Solustion is in this :
PHP код:
PlayerInfo[i][pExp]++; //experience points 
- But i really don't know how to make it 2 instead of 1 , Help would be really appreciated
Reply
#2

pawn Код:
//PlayerInfo[i][pExp]++;    // pExp = pExp+1;
//PlayerInfo[i][pExp] +=1; //  pExp = pExp+1;
PlayerInfo[i][pExp] +=2;   //  pExp = pExp+2;
Reply
#3

This should help:
pawn Код:
PlayerInfo[i][pExp] = PlayerInfo[i][pExp]+2;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)