06.10.2010, 23:51
(
Последний раз редактировалось Crayon; 08.10.2010 в 01:19.
)
Hi guys I'm trying to create a RP script without editing another script, just creating one from scratch. A lot of work but for a beginner scripter I think it's the best way to get the basics down and become advanced.
I'm able to create a /b function shown below of my code:
Problem:
If you type something such as "/b hello" It'll appear in the chat box " ((Hello)) " obviously.
Though if you type something such as
"/boobies" ----> /boobies is NOT a registered command
It'll turn up in chat as "oobies", thinking that /b was the OOC function, and type "oobies"
How can I fix this?
Thank you!
I'm able to create a /b function shown below of my code:
pawn Код:
if(!strcmp(cmdtext, "/b", true, 2))
{
if(!cmdtext[2])return SendClientMessage(playerid, COLOR_GREY, "USAGE: /b [OOC CHAT]");
new str[128];
GetPlayerName(playerid,str, sizeof(str));
format(str, sizeof(str), "%s ((%s))", str, cmdtext[2]);
SendClientMessageToAll (COLOR_WHITE, str);
return 1;
}
If you type something such as "/b hello" It'll appear in the chat box " ((Hello)) " obviously.
Though if you type something such as
"/boobies" ----> /boobies is NOT a registered command
It'll turn up in chat as "oobies", thinking that /b was the OOC function, and type "oobies"
How can I fix this?
Thank you!