SA-MP Forums Archive
Exp. Points at Payday [urgent] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Exp. Points at Payday [urgent] (/showthread.php?tid=316470)



Exp. Points at Payday [urgent] - Black Axe - 07.02.2012

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


Re: Exp. Points at Payday [urgent] - Norck - 07.02.2012

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



Re : Exp. Points at Payday [urgent] - ricardo178 - 07.02.2012

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