Quote:
Originally Posted by Glederson_dom
PHP код:
new Var[5][150] = {
"content1",
"content2",
"content3",
"content4",
"content5"
};
new rand = random(4) + 1;
printf("%s", Var[rand]);
|
ai cara seu exemplo me ajudou muito! porйm qnd ele seleciona o content5 ele soma mais 1, e crasha o comando
+REP como forma de agradecimento
@EDIT
Jб resolvi valeu pela atenзгo. coloquei no sizeof(var) o valor de 4 assim, qnd for 4 ele vai pro 5