sub commands zcmd+sscanf
#1

can u tell me whats wrong with this code?
http://pastebin.com/h85hs8Mp
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
You are extracting the whole of the input, then comparing it to "Create". So you are essentially doing;

pawn Код:
if (!strcmp("Create Ballas", "Create", true))
Which will clearly always fail. Two ways to fix it: use "s[15] " instead of "s[15]", or put a length in the "strcmp" function.
ohh ok tnx!! (i asked ReaZoN to open this thread for me)
Reply
#3

Quote:
Originally Posted by SyntricT
Посмотреть сообщение
ohh ok tnx!! (i asked ReaZoN to open this thread for me)
why don't you?
Reply
#4

Quote:
Originally Posted by SturtIndia
Посмотреть сообщение
why don't you?
i needed to go :P (sry for bad english)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)