Samp or scripting bug?
#6

Quote:
Originally Posted by DeathOnaStick
Посмотреть сообщение
Hmm. What is this cmdtext[4] actually for? For me it kinda seems useless but I don't think the problem is going to be fixed by that. But who knows?

Well in my opinion your script should work fine, if it's not that cmdtext-part.
Yea it worked fine before, but now? what the hell.
!cmdtext[4] is same as cmdtext[4]==0 and that is same as cmdtext[4]='\0' ( or cmdtext[4]=EOS, EndOfString).
In this case:
pawn Код:
if(!cmdtext[4]) /*is same as */ if(strlen(cmdtext)==strlen("/std"))
Reply


Messages In This Thread
Samp or scripting bug? - by Roko_foko - 25.07.2012, 13:21
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 13:55
Re: Samp or scripting bug? - by TheDeath - 25.07.2012, 13:57
Re: Samp or scripting bug? - by Roko_foko - 25.07.2012, 13:59
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 14:05
Re: Samp or scripting bug? - by Roko_foko - 25.07.2012, 14:10
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)