 |
|  |
 |
|
kaan
|
|
Aarhus
Mar 2001 time: 05:14
|
|
player[0].publicworkslevel = tmpPwA;
needs to be:
tmpPwA = player[0].publicworkslevel;
you assign values from the left side of "=" to the right side.
you could put it like this:
tmpPwa "is set equal to" player[0].publicworkslevel
-klaus
|
|
|  |
 |
|
kaan
|
|
Aarhus
Mar 2001 time: 05:14
|
|
these are my notes to all the code:
code:
HandleEvent(BeginTurn) 'GiveResourcesA' pre {
int_t tmpPlayer;
tmpPlayer = g.player; // g.player is the current player
if(tmpPlayer == 1) { // why player 1 ???
PwcountA = PwcountA + 1;
if(PwcountA == 3){ // this line will only run if
// tmpPlayer = 1 , see above
tmpPwA = tmpPlayer.publicworkslevel;
tmpPw2A = tmpPwA + 5000; // why not tmpPwA = tmpPwA + 5000;
setPW(tmpPlayer, tmpPw2A); // if above then
// setPW(tmpPlayer, tmpPwA);
PwcountA = 0;
}
}
}
-klaus
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:14. Apolyton Time is 00:14. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|