25.02.2012, 06:49
Quote:
So i have a script, when you type /buy, it does this:
pawn Код:
Here it goes wrong: i tried these codes: pawn Код:
None of them realy worked, the second one gave weird letters like й in the string. Could you guys help me? Thnx. ---Edit--- I also have (string shadows a variable on a preceding level.). I think i already got the first question but how do i solve this one? |
You could just use a new variable like the following for counting the cars one have:-
pawn Код:
new count[MAXPLAYERS]; // top
//When he buy the car or gets it you add the following to start counting:-
count[playerid]++; // maybe in a command which is use to buy cars.
// and following for minus the car which is sold/destroyed/gone:-
count[playerid]--; // this decrease the amount car by 1 digit everytime when one loses the car.
-FalconX