question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: question (
/showthread.php?tid=132782)
question -
aircombat - 09.03.2010
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
Re: question -
Jeffry - 09.03.2010
Any { or } is sitting wrong.
But without code its hard.
Re: question -
cozza123456 - 09.03.2010
Tut Tut Etch...
Re: question -
aircombat - 09.03.2010
whole code :
http://pastebin.com/Laumx9yW
________
Toyota Fj40 History
Re: question -
Jeffry - 09.03.2010
Checking that tomorrow.
Offline now.
Re: question -
Joe_ - 09.03.2010
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-