SA-MP Forums Archive
error at stringing - 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)
+--- Thread: error at stringing (/showthread.php?tid=548092)



error at stringing - roi857 - 27.11.2014

if(strcmp(line[0], ' ',true) == 0) strdel(line,0,0);

error 035: argument type mismatch (argument 2)

what did i do wrong?


Re: error at stringing - Vince - 27.11.2014

Use double quotes, or this:
pawn Код:
if(line[0] == ' ')
Double quotes define a string, single quotes define a character constant.


Re: error at stringing - roi857 - 27.11.2014

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use double quotes, or this:
pawn Код:
if(line[0] == ' ')
Double quotes define a string, single quotes define a character constant.
thanks a lot