y_commands
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)