Can you help me please?
#1

I'm new in pawno'm trying to create commands. I created one command and successfully compiled, created shortly after another and gave 2 errors, I'll send the code and errors, I hope someone can help me, I thank you
Код HTML:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/creditos", true) == 0)
    {
        SendClientMessage(playerid, Green, "| CREDITOS | GM FEITO POR Willian !");
        return 1;
    }
    return 0;
}
	if(strcmp(cmdtext, "/ajuda", true) == 0)
	{
	    SendClientMessage(playerid, Green, "Leia as regras do servidor no /Regras");
	    return 1;
}
Errors:

Код HTML:
D:\MOACIR\Desktop\Pawno\GM de Teste\gamemodes\GM.pwn(111) : error 010: invalid function or declaration
D:\MOACIR\Desktop\Pawno\GM de Teste\gamemodes\GM.pwn(114) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
How to resolve these errors
Reply
#2

out of scope dear lad!

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/creditos", true) == 0)
    {
        SendClientMessage(playerid, Green, "| CREDITOS | GM FEITO POR Willian !");
        return 1;
    }
    if(strcmp(cmdtext, "/ajuda", true) == 0)
    {
        SendClientMessage(playerid, Green, "Leia as regras do servidor no /Regras");
        return 1;
    }
    return 0;
}
Reply
#3

Thanks man, helped me a lot ^ ^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)