[Ajuda] Ajuddaaa
#1

Isso pode causar loop infinito ?

pawn Код:
dcmd_sortear(playerid,params[]) {
if(CallRemoteFunction("GetPlayerAdminLevel","i",playerid) < 1) return SendClientMessage(playerid,COLOUR_ERRO,StringTable[8]);
new quantia=strval(params);
new limite;
new string[128],string2[128],string3[128];
new PlayersOnline;
new lmsorteio;
if(!strlen(params)){SendClientMessage(playerid, COLOUR_ERRO, "Uso: /sortear <quantia>");return 1;}
for(new i; i < GetMaxPlayers(); i++) if(IsPlayerConnected(i)) PlayersOnline++;
if(PlayersOnline < 5) return SendClientMessage(playerid,COLOUR_ERRO,"[ERRO]: O servidor deve ter no mнnimo 5 players online");
if(quantia > limite){
format(string, sizeof(string), "[ERRO]: O limite de sorteio para seu nнvel de ADM й $%i", limite);
SendClientMessage(playerid, COLOUR_ERRO, string);
return 1;}
if(SorteiosFeitos[playerid] >= lmsorteio){
format(string, sizeof(string), "[ERRO]: O limite de sorteios realizados para seu nнvel ADM sгo de %i por sessгo", lmsorteio);
SendClientMessage(playerid, COLOUR_ERRO, string);
return 1;}
if(CallRemoteFunction("GetPlayerCash", "i", playerid) < quantia) return SendClientMessage(playerid, COLOUR_ERRO, "[ERRO]: Vocк nгo possui dinheiro suficiente!");
new NomeDoSortudo[MAX_PLAYER_NAME];
new NomeDoADM[MAX_PLAYER_NAME];
new sortudo;
new Interations;
for(;;){     <<<<<<<<<<<<<<<<<<<<<<<<<< AQUIII DA PROBLEMA ???????? <<<<<<<<<<<<<<<<<<<<<<<<<
Interations++;
sortudo = random(GetMaxPlayers());
Reply
#2

Cara eu jб falei o problema no seu serve й o FS anti-crash, a include #include <foreach> pode bugar o serve se nгo colocar o fs em 1 Lugar no server.cfg
Reply
#3

Quote:
Originally Posted by zqkRazer
Посмотреть сообщение
Cara eu jб falei o problema no seu serve й o FS anti-crash, a include #include <foreach> pode bugar o serve se nгo colocar o fs em 1 Lugar no server.cfg
Pow mano me ajuda a arruma esse fs ai, ajuda ai por favor, se vc passou por isso, sabe como й ruim, nгo sei qual й esse fs anti-crash !
Reply
#4

Meu gm nгo usa essa include!
Reply
#5

Acho que nгo.
Reply
#6

Essa include tб no fs
Reply
#7

pawn Код:
for(;;)
isso й um loop infinito e voce nao precisa disso para nada.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)