question
#1

ok i am making an admin script with dcmd problem is when i insert the fs to server.cfg and go in-game and type a wrong command like : /lol it shows "You Aren't Admin" which should show if i wrote an admin cmd , can anyone tell me an explaination?
________
Body Science
Reply
#2

Any { or } is sitting wrong.
But without code its hard.
Reply
#3

Tut Tut Etch...
Reply
#4

whole code : http://pastebin.com/Laumx9yW
________
Toyota Fj40 History
Reply
#5

Checking that tomorrow.

Offline now.
Reply
#6

Try using

Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"You Are Not An Admin");
// Other ST00F
And btw, your using unecessary memory..
you don't need strtok, just use "params", and decrease the size of tmp if you're going to keep using strtok, to [256].

Or even better, use dcmd + sscanf, much less memory intensive and faster!

Tutorial for DCMD+SSCANF: HERE

OFF-TOPIC: -sarcasm- Jeffry, what are you doing with my bitch in your signature? tut tut..-/sarcasm-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)