error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
CMD:cmds(playerid,params[])
{
new string[2000];
strcat(string, ""WHITE"/commands - Shows you the commands\n/rules - Shows you the rules\n/afk,/back,/afklist - Sets your stats to (non)afk and shows you the afk list\n* Notis007 - Roleplay command\n/kill - Kills you\n/reclass - Forces you to class selection\n/report - Reports a player\n/pm - Sends a PM to a player\n/admins - Shows theo nline admins\n/vcmds - Shows the VIP commands\n/acmds - Shows the admin commands\n/weaponshop - Shows available to buy weapons");
ShowPlayerDialog(playerid,984,DIALOG_STYLE_MSGBOX,""CYAN"San Fierro Gang Wars - Commands",strcat,"OK","");
return 1;
}
Unless you are going to add more and more to the string (which you are not at the moment), it's then honestly better to use format, as it's a bit faster.
Also, to fix this, simply take out "strcat" from your dialog line and use "string" instead. strcat is the function, 'string' is the destination. |