Can you help me please? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can you help me please? (
/showthread.php?tid=405205)
Can you help me please? -
ghostmaster - 05.01.2013
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
Re: Can you help me please? -
u3ber - 05.01.2013
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;
}
Re: Can you help me please? -
ghostmaster - 05.01.2013
Thanks man, helped me a lot ^ ^