Author Topic: How is it with math simbols ?  (Read 2414 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
How is it with math simbols ?
« on: November 06, 2011, 03:45:08 pm »
Look... i don't know how to explain but im sure you understand.

How to make this:

[pawn]new vehicleid = GetPlayerVehicleID(playerid);
new Float:Health;
GetVehicleHealth(vehicleid,Health);
   if(Health > 80 < 90) {         //here give error
             }[/pawn]

warning 205: redundant code: constant expression is zero


 

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



yazeen

  • Guest
Re: How is it with math simbols ?
« Reply #1 on: November 06, 2011, 04:00:51 pm »
Look... i don't know how to explain but im sure you understand.

How to make this:

[pawn]new vehicleid = GetPlayerVehicleID(playerid);
new Float:Health;
GetVehicleHealth(vehicleid,Health);
   if(Health > 80 < 90) {         //here give error
             }[/pawn]

warning 205: redundant code: constant expression is zero

WTH is this lol!
this is supposed to be:

[pawn]new vehicleid = GetPlayerVehicleID(playerid);
new Health = GetVehicleHealth(vehicleid);
   if(Health => 800) {         //Vehicle's health is out of 1000 and player's health is out of 100. you can replace 800 with any
             }[/pawn]

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: How is it with math simbols ?
« Reply #2 on: November 06, 2011, 04:39:38 pm »
I solved the problem.

thx yazeen

[pawn]if(Health => 800)[/pawn] 
???

Need ">=".


for me not worked because i forgot to put "return 1;" and the real health of vehicle
« Last Edit: November 06, 2011, 04:43:00 pm by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.