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



y_commands - Tomer!.$ - 07.04.2012

Whenever I try to do a command like this:
PHP код:
if(!IsPlayerConnected(params)) 
It gives me the next error:
PHP код:
error 035argument type mismatch (argument 1
So I have to create a variable, so I wonder is there any way to use it with params?


Re: y_commands - Jonny5 - 07.04.2012

params is a string and your assigning it to an int

try it like this

pawn Код:
if(!IsPlayerConnected(strval(params)))
strval converts from string to int
https://sampwiki.blast.hk/wiki/Strval