problem with strcat. - 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: problem with strcat. (
/showthread.php?tid=282113)
problem with strcat. -
budelis - 09.09.2011
Hi all.maybe somebody can say who is bad here:
pawn Код:
new SearchTime= GetTickCount();
strcat( szDialog, GetTickCount() - SearchTime );
And when i add this:
pawn Код:
GetTickCount() - SearchTime
I get error:
pawn Код:
C:\Documents and Settings\Owner\Desktop\NAUJAUSIAS SAMP SERVERIS\gamemodes\freeroam.pwn(472) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: problem with strcat. -
JaTochNietDan - 09.09.2011
That's because strcat only accepts strings. You're trying to pass an integer, so that won't work. You could use the
valstr function or else the
format function in order to do this.