- 0
[GF/RP] problema random messages
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Papana
Deci am pus si io niste mesaje bot:
forward:
new:new rMessageList[][] = { "{6EF83C}[BestOne-BOT]:{FFFFFF}Ai vazut vreun Codat ? /report si-l vom rezolva!", "{6EF83C}[BestOne-BOT]:{FFFFFF}Ai nevoie de ajutor ? /needhelp si te ajutam!", "{6EF83C}[BestOne-BOT]:{FFFFFF}Te supara cineva ? /contract si-l eliminam!", "{6EF83C}[BestOne-BOT]:{FFFFFF}Vrei sa sti forumul serverului ? /forum!", "{6EF83C}[BestOne-BOT]:{FFFFFF}Vrei sa sti ownerii serverului ? /contact!", "{6EF83C}[BestOne-BOT]:{FFFFFF}Vrei niste detalii despre server ? /serverinfo!!" }; new rCheckList[sizeof(rMessageList)];public:public rMessage() { new rNumber, Check = 0; do{ for(new i=0; i<sizeof(rCheckList); i++) if(rCheckList[i] != 0) Check++; if(Check == sizeof(rCheckList)) for(new i=0; i<sizeof(rCheckList); i++) rCheckList[i] = 0; rNumber = random(sizeof(rMessageList)); }while(rCheckList[rNumber]); SendClientMessageToAll(-1, rMessageList[rNumber]); rCheckList[rNumber] = 1; }ce am uitat sa mai adaug ?
ca nu imi apar mesajele cand sunt pe server ...
nu mia dat nicio eroare sau warn ceva..
3 answers to this question
Recommended Posts