05.01.2013, 20:09
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
Errors:
How to resolve these errors
Код 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; }
Код 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.