Niels Posted December 6, 2004 Share Posted December 6, 2004 if (!car == $3) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if ($mta.vehicle($1,%b).name != Unknown) mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % else mta.say $1 $mta.name($1,%b) is out of game! } else { if ($mta.vehicle($1,$2).name != Unknown) mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % else mta.say $1 You are out of game! if ($mta.name($1,%b).name == Unknown) mta.say $1 User ID Failed. } } Why is it User ID Failed. not working ??? can somone fix it ? Link to comment
Mike Posted December 6, 2004 Share Posted December 6, 2004 (edited) Dude, first this should be in mta scripting. Second, you already asked me on irc and i helped you. Edited December 6, 2004 by Guest Link to comment
Niels Posted December 6, 2004 Author Share Posted December 6, 2004 IRC Chat and Scripting ??? Link to comment
Niels Posted December 6, 2004 Author Share Posted December 6, 2004 if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % elseif ($mta.vehicle($1,%b).name == Foot && Unknown) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! } else { mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % elseif ($mta.vehicle($1,$2).name == Foot && Unknown) mta.say $1 Unable to get in what car you are in! } } Why is this don't work (car script edit) Link to comment
Niels Posted December 6, 2004 Author Share Posted December 6, 2004 if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car you are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % } } it's works Link to comment
Mike Posted December 6, 2004 Share Posted December 6, 2004 I think you can remove the "%manhunt %" as you don't even know what it's supposed to do Also, may be useful to add if ($mta.admin+ == $true) { before it and then } else mta.say $1 No admin+ connection after it Link to comment
Ghoststriker Posted December 7, 2004 Share Posted December 7, 2004 Well he fixed his own problem. I dont understand why people cant wait for alittle bit longer and get it. Link to comment
Niels Posted December 9, 2004 Author Share Posted December 9, 2004 if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! if ($mta.name($1,%b).name == Unknown) mta.say $1 Failed ID. else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car u are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % } } Why is that failed id not working ?? Link to comment
Mike Posted December 10, 2004 Share Posted December 10, 2004 if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 !== $null) { if (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) are in! if ($mta.name($1,%b).name == Unknown) mta.say $1 Failed ID. else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) %manhunt % } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car u are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) %manhunt % } } Why is that failed id not working ?? Try this: if ($3 == !car) { %b = $iif($4 isnum,$4,$mta.getid($1,$4)) if ($4 != $null) { if ($mta.name($1,%b) == Unknown) mta.say $1 Failed ID. elseif (($mta.vehicle($1,%b).name == Foot) || ($mta.vehicle($1,%b).name == Unknown)) mta.say $1 Unable to get in what car $mta.name($1,%b) is in! else mta.say $1 $mta.name($1,%b) is in/on $mta.vehicle($1,%b).name - Damage: $calc(100 - $mta.health($1,%b).vehicle) } else { if (($mta.vehicle($1,$2).name == Foot) || ($mta.vehicle($1,$2).name == Unknown)) mta.say $1 Unable to get in what car you are in. else mta.say $1 $mta.name($1,$2) is in/on $mta.vehicle($1,$2).name - Damage: $calc(100 - $mta.health($1,$2).vehicle) } } Link to comment
Recommended Posts