problem with strcat.
#1

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

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)