romeck Posted April 8, 2011 Share Posted April 8, 2011 float rrcomgrcountset rrcomgrcount to (rrcomgrcount-1) what is not good with the 2nd line that editor do not want to save ? Link to comment Share on other sites More sharing options...
tunaisafish Posted April 8, 2011 Share Posted April 8, 2011 You cannot put calculations, functions etc. outside of blocks. Install GECK PowerUp to get script compilation warnings. I'd be bald right now from pulling my hair out without this tool. Link to comment Share on other sites More sharing options...
romeck Posted April 8, 2011 Author Share Posted April 8, 2011 float rrcomgrcountset rrcomgrcount to (rrcomgrcount-1) what is not good with the 2nd line that editor do not want to save ? what is block? whole script look like this: ScriptName RRXPAdjusterref rTarget BEGIN gamemode float storedXPfloat rrhealthfloat rx,ry,rzfloat rrhlfloat rrcofloat rrsmfloat rrtsmfloat xpfloat w1float w2float w3float w4float rrwumfloat rrwuufloat rrwumaxfloat rrwmfloat rrspmfloat rrdrmfloat rrwmaxfloat rrwmlastfloat rrnpcmfloat rrlvfloat rrhpbaseint rrxpint rrczyxpfloat rrcomcountfloat rrcomgrcountint rrint set rrcomcount to player.GetGroupTargetCount set rrcomcount to pow 1.08 rrcomcount ;set rrcomgrcount to player.GetGroupMemberCountset rrcomgrcount to (rrcomgrcount-1);set rrcomgrcount to (1/(pow 1.15 rrcomgrcount))END Link to comment Share on other sites More sharing options...
tunaisafish Posted April 8, 2011 Share Posted April 8, 2011 Oh you have a block then. A 'gamemode' block in this case. Finding syntax errors can be like looking for needles in a haystack. Install Geck-PU. You will thank yourself for it. Link to comment Share on other sites More sharing options...
rickerhk Posted April 8, 2011 Share Posted April 8, 2011 Probably doesn't like this: float rx,ry,rz also, GetGroupTargetCount and GetGroupMemberCount, when called on the player, are not likely to give you anything useful. Link to comment Share on other sites More sharing options...
romeck Posted April 8, 2011 Author Share Posted April 8, 2011 i instaled it and currently using . thanks that saves a lot of time. but sometimes still i do not know wtf :) Link to comment Share on other sites More sharing options...
Recommended Posts