[Ajuda] Erros que nгo consigo reparar :/
#1

Boas pessoal, sou novo por aqui mas jб Pawno б algum tempo.
Devido б mudanзa para 0.3b , obriguei me a mim mesmo sacar o 0.3a para fazer pawn ao meu GM .
Aqui estб uns erros, que voзes podiam me ajudar



Obrigado pela ajuda
Reply
#2

add no fundo do GM:


pawn Код:
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;
}
Reply
#3

acordo empolgado hoje em and oO
Reply
#4

nao entendi??

aqui ja sao 11h18
Reply
#5

Obrigado , desapareзeu muitos erros mas agora surgiu este:
trabalho\CRP_0.3a\gamemodes\crp.pwn(14006) : error 017: undefined symbol "HexToInt"
trabalho\CRP_0.3a\gamemodes\crp.pwn(14006) : error 017: undefined symbol "HexToInt"

que faзo ?
Reply
#6

a minha bola de crista quebou a umas semanas atras.. se puderes postar as linhas dos erros
Reply
#7

Код:
public SetPlayerToFactionColor(playerid)
{
	if(PlayerInfo[playerid][pFaction] != 255)
	{
		if(DynamicFactions[PlayerInfo[playerid][pFaction]][fUseColor])
		{
		    if(DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
		    {
      			if(CopOnDuty[playerid] == 1)
	        	{
	        	    SetPlayerColor(playerid,HexToInt(DynamicFactions[PlayerInfo[playerid][pFaction]][fColor]));
   		        }
   		        else
   		        {
	            	SetPlayerColor(playerid,COLOR_CIVILIAN);
   		        }
			}
			else
			{
				SetPlayerColor(playerid,HexToInt(DynamicFactions[PlayerInfo[playerid][pFaction]][fColor]));
			}
		}
	}
	return 0;
}
Aqui estгo elas, ajuda ? , ou prefer que tire print ?
Reply
#8

Ao final do GM, como fez com o strtok:
pawn Код:
stock HexToInt(string[]) {
  if (string[0]==0) return 0;
  new i;
  new cur=1;
  new res=0;
  for (i=strlen(string);i>0;i--) {
    if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);
    cur=cur*16;
  }
  return res;
}

native HexToInt(string[]);
Reply
#9

ae andmeida10 ti vendo uma bola de cristal lcd com que pega o novo sinal digital, por 200 mangos vai kere?
Reply
#10

Quote:
Originally Posted by pedro xD~
Посмотреть сообщение
ae andmeida10 ti vendo uma bola de cristal lcd com que pega o novo sinal digital, por 200 mangos vai kere?
Opa Manolo,, fazemo negуcio jб. tem Usb ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)