Enums and Arrays
#2

This is a pawn entity

Use strcat instead, https://sampwiki.blast.hk/wiki/Strcat
pawn Код:
strcat(pInfo[playerid][var1], "");
Or: (dont know if it works, just an idea)
pawn Код:
pInfo[playerid][var1][0] = EOF;
//or
pInfo[playerid][var1][1] = EOF;
If you got some time, feel free to test it, would be interesting to know if it works, as this would be much faster than strcat.
Basically, EOF is a symbol that tells pawn that the string is over here. Every string has this at the end, this is why
new txt[32];
could save a maximum of 31 chars.
Reply


Messages In This Thread
Enums and Arrays - by Th3Angel - 14.02.2011, 20:50
Re: Enums and Arrays - by Mauzen - 14.02.2011, 21:26
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 22:23
Re: Enums and Arrays - by PowerPC603 - 14.02.2011, 22:33
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 22:41
Re: Enums and Arrays - by Mauzen - 14.02.2011, 23:27
Re: Enums and Arrays - by Th3Angel - 14.02.2011, 23:46

Forum Jump:


Users browsing this thread: 1 Guest(s)