15.01.2013, 20:25
I started to create commands using the include ZCMD, tried creating a command on Dialog and gave errors, help me please!
Command:
Error:
Remembering that I set #define Credits 1 on top of GM
Command:
pawn Код:
CMD:creditos(playerid, params[])
{
new Creditos[200]; //Error Line
strins(Creditos,"{00BFFF}GM/DESENVOLVIMENTO: Willian \n",strlen(Creditos)); //Error Line
strins(Creditos,"{00BFFF}AJUDA DE: Wallison \n",strlen(Creditos)); //Error Line
strins(Creditos,"{FF8C69}A equipe [T.M] Agradeзe sua presenзa !\n",strlen(Creditos)); //Error Line
ShowPlayerDialog(playerid,224, DIALOG_STYLE_MSGBOX, "Crйditos do GameMode ",Creditos, "Ok", "Fechar"); //Error Line
return 1;
}
pawn Код:
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : error 001: expected token: "-identifier-", but found "-integer value-"
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(132) : error 035: argument type mismatch (argument 1)
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(133) : error 035: argument type mismatch (argument 1)
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(134) : error 035: argument type mismatch (argument 1)
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(135) : error 035: argument type mismatch (argument 5)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.