C:\Documents and Settings\Lanterna Negra\Desktop\Projeto\gamemodes\Projeto.pwn(296) : warning 203: symbol is never used: "strtok" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
public Crescimento(playerid)
{
if(!Info[playerid][Arara])
{
KillTimer(Info[playerid][Timer]);
return 0;
}
if(!Info[playerid][Racao] && Info[playerid][Grande] < 5)
{
SendClientMessage(playerid, BRANCO, "{FF6600}Vocк nгo alimentou sua Arara e Ela Morreu!");
RemovePlayerAttachedObject(playerid, 0);
Info[playerid][Arara] = false;
Info[playerid][Grande] = 0;
KillTimer(Info[playerid][Timer]);
return 1;
}
new str[30];
Info[playerid][Grande]++;
Info[playerid][Racao] = false;
format(str, sizeof str, "{FF6600}Sua Arara Cresceu! (%d/5)", Info[playerid][Grande]);
SendClientMessage(playerid, BRANCO, str);
if(Info[playerid][Grande] >= 5)
{
SendClientMessage(playerid, BRANCO, "{FF6600}Sua Arara Estб Grande e Pronta para ser vendida, Para vender digite /VenderArara !");
KillTimer(Info[playerid][Timer]);
}
return 1;
}
new nome[24], str[50];
GetPlayerName(playerid, nome, 24);
format(str, sizeof str, "%s - Arara", nome);
if(dini_Isset("Araras.txt", str))
{
Info[playerid][Arara] = bool:dini_Bool("Araras.txt", str);
format(str, sizeof str, "%s - Racao", nome);
Info[playerid][Racao] = bool:dini_Bool("Araras.txt", str);
format(str, sizeof str, "%s - Grande", nome);
Info[playerid][Grande] = dini_Int("Araras.txt", str);
if(Info[playerid][Arara])
{
Info[playerid][Timer] = SetTimerEx("Crescimento", 300000, true, "i", playerid);
SendClientMessage(playerid, 0xFFFF00AA, "{FF6600}Alimente sua arara ou ela morrerб.");
}
}
return 1;
}
Cara, faz oq o Biel falou, se vc nao achar strtok no gm pode ser erro em alguma include, mais de qualquer jeito, isso й sу um warning, vc pode ignorar pq o script foi compilado certo.
|