26 errors...
#1

Hi.

I have a problem with "floatround".
pawn Код:
SendClientMessage(playerid, -1, "Check");
new coef = floatround(VEH[model-400][PRIX]*0.0005, floatround_floor);
SendClientMessage(playerid, -1, "Check 2");
House[houseid][Var] += coef;
SendClientMessage(playerid, -1, "Check 3");
The debug for "Check" and "Check 2" is good, but Check 3 does not appear...

In my enum "House", "Var" is not a float.

How to fix my problem?

++
Reply
#2

Show us your code....
Reply
#3

Hi.

I UP the topic.

++
Reply
#4

Hello!

You can check this:
PHP код:
SendClientMessage(playerid, -1"Check");
new 
coef floatround(VEH[model-400][PRIX]*0.0005floatround_floor);
printf("coef = %d",coef);
SendClientMessage(playerid, -1"Check 2");
House[houseid][Var] += coef;
SendClientMessage(playerid, -1"Check 3"); 
What is printing in the console (server.log)?
Reply
#5

server_log.txt:
coef = 8
Reply
#6

PHP код:
SendClientMessage(playerid, -1"Check"); 
new 
coef floatround(VEH[model-400][PRIX]*0.0005floatround_floor); 
printf("coef = %d",coef); 
printf("coef + Var = %d",House[houseid][Var]+coef);
SendClientMessage(playerid, -1"Check 2"); 
House[houseid][Var] += coef
SendClientMessage(playerid, -1"Check 3"); 
And what is printing if you write it so?
Reply
#7

PHP код:
new coef;
coef floatround(VEH[model-400][PRIX]*0.0005floatround_floor);
new 
value;
value House[houseid][Var] + coef;
printf("Value: %i"value);
House[houseid][Var] = value;
printf("Var Value: %i"value); 
If it didn't work, Show me your server log.
Reply
#8

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
PHP код:
new coef;
coef floatround(VEH[model-400][PRIX]*0.0005floatround_floor);
new 
value;
value House[houseid][Var] + coef;
printf("Value: %i"value);
House[houseid][Var] = value;
printf("Var Value: %i"value); 
If it didn't work, Show me your server log.
You did the same things as the fellow above you but you created a not needed integer
Reply
#9

Quote:
Originally Posted by Jamester
Посмотреть сообщение
You did the same things as the fellow above you but you created a not needed integer
he's pawn hunter , he hunts pawn
Reply
#10

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
PHP код:
new coef;
coef floatround(VEH[model-400][PRIX]*0.0005floatround_floor);
new 
value;
value House[houseid][Var] + coef;
printf("Value: %i"value);
House[houseid][Var] = value;
printf("Var Value: %i"value); 
If it didn't work, Show me your server log.
Not work.

0 printf in my logs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)