SA-MP Forums Archive
String Help - 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: String Help (/showthread.php?tid=64729)



String Help - zappydude - 06.02.2009

Complete.


Re: String Help - Mikep - 06.02.2009

This won't fix your problem, but:

if (strcmp("/kill", cmdtext, true, 10) == 0)

Remove the "10".

Only use this is your using parameters.

Otherwise you can type /killfcbjhkdvjhb and it be a cmd.


Re: String Help - zappydude - 07.02.2009

Quote:
Originally Posted by Mikeshake
This won't fix your problem, but:

if (strcmp("/kill", cmdtext, true, 10) == 0)

Remove the "10".

Only use this is your using parameters.

Otherwise you can type /killfcbjhkdvjhb and it be a cmd.
Ahh Yeah, don't worry, I know that, I just leave it due to the fact that I cba sometimes


Re: String Help - zappydude - 07.02.2009

Sorry for being impatient, but I can't carry on scripting without solving this


Re: String Help - ICECOLDKILLAK8 - 07.02.2009

pawn Код:
new name[MAX_PLAYER_NAME];
?


Re: String Help - Auto-Sized - 07.02.2009

Quote:
Originally Posted by JeNkStAX
pawn Код:
new name[MAX_PLAYER_NAME];
He is better off using that in my opinion but I tested this and the message works. I only changed one thing which has was covered yesterday in another topic.

Quote:
Originally Posted by kaisersouse
dcmd for the win
I have to agree with that as I use it myself.

繁體中文版