[Ajuda] Mudar String no Dialog
#9

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
Reply


Messages In This Thread
Mudar String no Dialog - by TheBob - 09.10.2016, 21:01
Re: Mudar String no Dialog - by Whoo - 09.10.2016, 21:18
Re: Mudar String no Dialog - by TheBob - 09.10.2016, 23:09
Re: Mudar String no Dialog - by TheBob - 09.10.2016, 23:54
Re: Mudar String no Dialog - by Whoo - 10.10.2016, 00:09
Re: Mudar String no Dialog - by BobbMarley - 10.10.2016, 00:12
Re: Mudar String no Dialog - by TheBob - 10.10.2016, 00:23
Respuesta: Mudar String no Dialog - by SammyJ - 10.10.2016, 00:36
Re: Respuesta: Mudar String no Dialog - by TheBob - 10.10.2016, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)