Suggestions needed; inefficient scripting.
#1

I have several lines of code that I need to only show up when there are empty params. The null params option is a given, but when I take all 8 lines of accents(/languages - some are more languages than accents, but this is still a WIP), and apply the '&&' operation, it crashes my compiler. Is there any better way to do this? I'm self-taught, so I apologize for any weird wording or novice mistakes.

I've defaulted to just placing them under the command without any special conditions, so they flood the screen every time the command is entered.
Command fragment:

Код:
CMD:accent(playerid, params[])
{
	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Amerindian | American | Arabic | Armenian | Basque | Bavarian | Belarusian | Bengali | Bulgarian]");
	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Burmese | Cambodian | Canadian | Cantonese | Chinese | Croatian | Czech | Danish]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Dutch | Esperanto | Estonian | Finnish | French | German | Greek | Hawaiian]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Hungarian | Icelandic | Indonesian | Italian | Jamaican | Japanese | Jewish]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Korean | Kurdish | Latin | Latvian | Lithuanian | Mexican | Mongolian | Nepalese]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Norwegian | Persian | Pidgin | Polish | Portuguese | Punjabi | Romanian | Russian | Sardinian]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Scottish | Serbian | Sinhalese | Slovak | Slovenian | Spanish]");
 	SendClientMessage(playerid, 0xEDEBECFF, "USAGE: /accent [Sudanese | Swahili | Swedish | Tagalog | Thai | Turkish | Ukranian | Venezuelan | Vietnamese | Welsh]");
I realize that I should define a color instead of using the code over and over.
Do not attack my use of zcmd, it's simple to use, and I don't want to participate in your wars.

Thanks in advance.
Reply
#2

Removed reply.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)