Whats wrong here?
#1

I have a small problem.
What's wrong here?
Код:
error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.
Pawno Code
pawn Код:
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;
}
So as you can see im not so good with the strcat
Reply
#2

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.
Reply
#3

Quote:
Originally Posted by LarzI
Посмотреть сообщение
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.
Thanks for making it clear,u really helped me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)