• Welcome to Vice City Multiplayer.
 

joining strings

Started by ramandu, March 01, 2010, 06:26:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ramandu

how do we join strings with other strings, and strings with integers in pawn?

something like sprintf();

MyString[256] = "this is a test string";
MyInt = 1;

sprintf("%s %s %s %d \n", "this joins", MyString, "with", MyInt);

thankyou very much.

Ettans

MyString[256] = "this is a test string";
MyInt = 1;

printf("this joins %s with %d\n",MyString,MyInt);


Output: this joins this is a teststring with 1