[Ajuda] enum - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] enum (
/showthread.php?tid=376614)
enum -
FrostGF - 10.09.2012
Estou refazendo um antigo sistema meu, e me veio uma dъvida na cabeзa: uma enum sу aceita valores(nє's) ou tambйm aceita strings? Se aceitar strings, como faзo para colocar como string?
Re: DUVIDA: enum -
Victor' - 10.09.2012
pawn Код:
enum eStr
{
str1[123],
str2[123]
}
new str[eStr];
format(str[str1], sizeof 123, "%s", "texto1");
format(str[str2], sizeof 123, "%s", "texto2");
Seria isto?