[AJUDA] /pm
#1

Bom eu peguei um /pm de um filterscript, aн coloquei no meu gamemode.

Erros:

Код:
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(602) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(604) : error 017: undefined symbol "tmp"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(604) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(606) : error 017: undefined symbol "tmp"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(611) : error 017: undefined symbol "tmp"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(612) : error 017: undefined symbol "gMessage"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(612) : error 017: undefined symbol "strrest"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(614) : error 017: undefined symbol "gMessage"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(624) : error 017: undefined symbol "iName"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(624) : error 017: undefined symbol "iName"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(624) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\gamemodes\glgw.pwn(624) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Linhas...

pawn Код:
//--------SISTEMA DE MENSAGENS PRIVADAS
        if(strcmp("/pm", cmd, true) == 0)
    {
        tmp = strtok(cmdtext,idx);

        if(!strlen(tmp) || strlen(tmp) > 5) {
            SendClientMessage(playerid,COLOR_RED,"Digite /pm [id] [texto].");
            return 1;
        }

        new id = strval(tmp);
        gMessage = strrest(cmdtext,idx);

        if(!strlen(gMessage)) {
            SendClientMessage(playerid,COLOR_RED,"Digite /pm [id] [texto].");
            return 1;
        }

        if(!IsPlayerConnected(id)) {
            SendClientMessage(playerid,COLOR_RED,"Esse ID nгo existe!");
        }

        if(playerid != id) {
            GetPlayerName(id,iName,sizeof(iName));
            GetPlayerName(playerid,pName,sizeof(pName));
            format(Message,sizeof(Message),"• {FF0000}Mensagem Privada enviada para {FFFF00}%s(%d): %s",iName,id,gMessage);
            SendClientMessage(playerid,COLOR_YELLOW,Message);
            format(Message,sizeof(Message),"• {FF0000}Mensagem Privada de {FFFF00}%s(%d): %s",pName,playerid,gMessage);
            SendClientMessage(id,COLOR_YELLOW,Message);
            PlayerPlaySound(id,1085,0.0,0.0,0.0);

            printf("PM: %s",Message);

        }
        else {
            SendClientMessage(playerid,COLOR_RED,"Vocк nгo pode mandar Mensagens Privadas para vocк mesmo!");
        }
        return 1;
    }
Ajuda aк galera, valeus...
Reply


Messages In This Thread
[AJUDA] /pm - by [AF]Junior - 14.02.2011, 20:44
Re: [AJUDA] /pm - by [RoxX]Ygor - 14.02.2011, 20:49
Re: [AJUDA] /pm - by [AF]Junior - 14.02.2011, 20:51
Re: [AJUDA] /pm - by [RoxX]Ygor - 14.02.2011, 20:56
Re: [AJUDA] /pm - by Macintosh - 14.02.2011, 20:59
Re: [AJUDA] /pm - by [AF]Junior - 14.02.2011, 21:05
Re: [AJUDA] /pm - by rjjj - 14.02.2011, 21:17
Re: [AJUDA] /pm - by zSuYaNw - 14.02.2011, 21:39
Re: [AJUDA] /pm - by [AF]Junior - 14.02.2011, 21:40

Forum Jump:


Users browsing this thread: 3 Guest(s)