Quote:
Originally Posted by EvanA
Nothing is wrong. That would be used by typing "/attachments". You would have to script it into your game-mode for it to work with your toy system.
|
You mean i need to edit the filterscript command need to be "/toys" to working good?
EDIT: I Found what need to be scripted, thanks

EDIT2:
E:\NERP\filterscripts\attachments.pwn(289) : error 017: undefined symbol "TOYS"
E:\NERP\filterscripts\attachments.pwn(290) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/toys", true))
{
new string[128];
for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (Used)\n", string, x);
else format(string, sizeof(string), "%s%d\n", string, x);
}
ShowPlayerDialog( playerid, TOYS, DIALOG_STYLE_LIST, "Toy Menu", "Attach/Dettach a Toy\nEdit a Toy\nDelete a Toy","Select", "Cancel" );
return 1;
}