strcat()
#3

https://sampwiki.blast.hk/wiki/Strcat

strcat's second parameter is a STRING which you cannot format with multiple arguments in the function, you should use format() for that.

pawn Code:
new
        szReplicateString[24],
        szNewString[24];
       
    format(szNewString, sizeof(szNewString), "aoaoao%d", GetPlayerWantedLevel(0));
    strcat(szReplicateString, szNewString, sizeof(szNewString));
tl;dr: You can't format strings using strcat.
Reply


Messages In This Thread
strcat() - by admantis - 17.03.2011, 23:57
Re: strcat() - by pawn_ - 18.03.2011, 00:01
Re: strcat() - by Calgon - 18.03.2011, 00:03
Re: strcat() - by admantis - 18.03.2011, 00:05

Forum Jump:


Users browsing this thread: 2 Guest(s)