20.02.2014, 18:58
pawn Код:
ObjectInfo[i][oName] = example;
pawn Код:
Object ID %d's Name is %s i, ObjectInfo[i][oName]
ObjectInfo[i][oName] = example;
Object ID %d's Name is %s i, ObjectInfo[i][oName]
strcat((ObjectInfo[i][oName][0] = '\0', ObjectInfo[i][oName]), example, SIZE_HERE);
oName[32],
pawn Код:
pawn Код:
|
format(ObjectInfo[i][oName], 100, example);
format(example, 100, "example");
format(ObjectInfo[i][oName], 100, "your text for the object name here.");
Don't use assignment (=) for copying a string to another. Use strcat instead.
pawn Код:
For example, if it's: pawn Код:
|
string1 = string2;
new test1[] = "hello world";
new test2[12];
test2 = test1;
printf("test2 = \"%s\"", test2);
strpack(ObjectInfo[i][oName], "mrk_seating1", 20);
strins(ObjectInfo[i][oName], "mrk_seating1", 0, 20);