Problem when compiling
#1

I started to create commands using the include ZCMD, tried creating a command on Dialog and gave errors, help me please!

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;
}
Error:

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.
Remembering that I set #define Credits 1 on top of GM
Reply
#2

do it like these why do you need string and params for?

pawn Код:
CMD:creditos(playerid)
{
    ShowPlayerDialog(playerid, 244, DIALOG_STYLE_MSGBOX,"Crйditos do GameMode","{00BFFF}GM/DESENVOLVIMENTO: Willian\n{00BFFF}AJUDA DE: Wallison\n{FF8C69}A equipe [T.M] Agradeзe sua presenзa !\n","Ok"","");
    return 1;
}
Reply
#3

Ok sorry will delay will respond

pawn Код:
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : error 037: invalid string (possibly non-terminated string)
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : warning 215: expression has no effect
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : error 001: expected token: ";", but found ")"
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : error 029: invalid expression, assumed zero
D:\MOACIR\Desktop\Pawno\GM Para programar\gamemodes\PROGRAMAR.pwn(131) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Line error:

pawn Код:
ShowPlayerDialog(playerid, 244, DIALOG_STYLE_MSGBOX,"Crйditos do GameMode","{00BFFF}GM/DESENVOLVIMENTO: Willian\n{00BFFF}AJUDA DE: Wallison\n{FF8C69}A equipe [T.M] Agradeзe sua presenзa !\n","Ok"","");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)