[AJUDA] Erro cmd
#1

Seguinte :

Achei esse cmd na net /meuclima [id] Para mudar o clima do player para qual ele quizer, e deu os seguintes erros :

pawn Код:
C:\Documents and Settings\FAMILIA_\Desktop\DPSOriginal1\gamemodes\testing.pwn(1512) : error 017: undefined symbol "cmd"
C:\Documents and Settings\FAMILIA_\Desktop\DPSOriginal1\gamemodes\testing.pwn(1515) : error 017: undefined symbol "strtok"
C:\Documents and Settings\FAMILIA_\Desktop\DPSOriginal1\gamemodes\testing.pwn(1515) : error 033: array must be indexed (variable "tmp")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Comando :

pawn Код:
if (!strcmp(cmd, "/meuclima", true)) //Comando
        {
        new tmp[256]; //New Tmp
        tmp = strtok(cmdtext, idx); //Strtok
        if(!strlen(tmp)) return SendClientMessage(playerid, COR_TAXI, "Use /meuclima [ID]"); //Mensagem caso erre.
        new weather = strval(tmp); //Funзгo do Weather
        SetPlayerWeather(playerid, weather); //Funзгo do Weather
        SendClientMessage(playerid, COR_TAXI,"Vocк mudou seu clima !"); //Mensagem
        return 1;
}
Reply


Messages In This Thread
[AJUDA] Erro cmd - by Oakley_TwOPaCk - 14.02.2012, 15:15
Re: [AJUDA] Erro cmd - by zbt - 14.02.2012, 15:24
Re: [AJUDA] Erro cmd - by rjjj - 14.02.2012, 15:30
Re: [AJUDA] Erro cmd - by Oakley_TwOPaCk - 14.02.2012, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)