Hello, yesterday me and "Dan Taco" have put a code together that calculates the P_Tress in % from your current Horsepower like 104 hp .
P_Tress = (247HP - "Wanted HP") / 2,86
for example
P_Tress = (247HP - 104HP) / 2,86
P_Tress = 50
Anyways my Main Problem is, that P_Tress does not work at all.
On the following code i will get the Message "Bad Boy 2" all the time, no matter what i do.
I have even deleted the whole Restriction code from LFSLapper.lpr while it was disabled with a # infront of every row.
any help would be very appreciated.
CatchEvent OnNewPlayerJoin ( $userName )
IF(GetPlayerVar($userName,"P_Tress") >= 20) THEN
privmsg($userName,"Good Boy 1");
ELSE
privmsg($userName,"Bad Boy 2");
ENDIF
EndCatchEvent
Thanks
P_Tress = (247HP - "Wanted HP") / 2,86
for example
P_Tress = (247HP - 104HP) / 2,86
P_Tress = 50
Anyways my Main Problem is, that P_Tress does not work at all.
On the following code i will get the Message "Bad Boy 2" all the time, no matter what i do.
I have even deleted the whole Restriction code from LFSLapper.lpr while it was disabled with a # infront of every row.
any help would be very appreciated.
CatchEvent OnNewPlayerJoin ( $userName )
IF(GetPlayerVar($userName,"P_Tress") >= 20) THEN
privmsg($userName,"Good Boy 1");
ELSE
privmsg($userName,"Bad Boy 2");
ENDIF
EndCatchEvent
Thanks