AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Telemenu Question (https://forums.alliedmods.net/showthread.php?t=8924)

scottyk87 12-31-2004 02:47

Telemenu Question
 
I am trying to make it so that it is possible for admins to teleport other admins even though they have immunity. I looked through the sma and found this part.

Code:

if ( blockMenu ||  !is_user_alive(i) || (get_user_flags(i)&ADMIN_IMMUNITY) ) {
I dont know that much about codding but I changed it to this
Code:

if ( blockMenu ||  !is_user_alive(i) || ) ) {
When I compiled it I got error 029 invaild expressions assumed zero
Not really sure what this means or if it dosen't matter. If anyone could help I would greatly appreciate it. Thanks

f1del1ty.oXi 12-31-2004 02:53

remove the extra ) if I'm not mistaken, maybe make it look like this:

Code:

if ( blockMenu ||  !is_user_alive(i) ) {
I don't think you need the || because you don't have another variabe, or whatnot. :x And you had the extra ) in there. Course, I'm terrible, and don't even know why I'm posting this. :x

scottyk87 12-31-2004 03:23

Same compile error. Haven't tested it on the server yet to see if it works.

scottyk87 12-31-2004 20:24

Any help on this?

XxAvalanchexX 12-31-2004 22:39

Works fine for me.

scottyk87 01-01-2005 00:27

Thank you.


All times are GMT -4. The time now is 19:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.