C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(79) : warning 201: redefinition of constant/macro (symbol "COLOR_RED")
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(331) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(382) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(397) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(2137) : warning 203: symbol is never used: "BombaRelogio"
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(1126) : warning 204: symbol is assigned a value that is never used: "bombtime"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
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;
}
C:\Documents and Settings\Administrador\Meus documentos\Arquivos do servidor\gamemodes\bgl.pwn(382) : error 021: symbol already defined: "strtok" |
encrypt(pass[])
{
static charset[] = "qwertyaQWERTYUIOPZXCVBNMLKJHGFDSAsdfghzxcvbnuiopjklm1324657809_";
static css = 63;
new target[MAX_SENHA + 1];
new j = strlen(pass);
new sum = j;
new tmpp = 0;
new i;
new modw;
for (i = 0; i < MAX_SENHA || i < j; i++)
{
modw = i % MAX_SENHA;
tmpp = (i >= j) ? charset[(7 * i) % css] : pass[i];
sum = (sum + chrfind(tmpp, charset) + 1) % css;
target[modw] = charset[(sum + target[modw]) % css];
}
target[MAX_SENHA] = '\0';
return target;
}
stock chrfind(needle, haystack[], start = 0)
{
while(haystack[start])
{
if(haystack[start++] == needle)
{
return start-1;
}
}
return -1;