Raised This Month: $ Target: $400
 0% 

Menu code gets a warning?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 12-11-2006 , 18:00   Re: Menu code gets a warning?
Reply With Quote #7

3 things:

1:remove/change
Code:
new nLen = format(szMenuBody, 255, "\yMain Menu:^n");
to
Code:
new nLen = format(szMenuBody, 255, "Main Menu: ^n");

2:change "\yMain Menu: " to "Main Menu: ",i thing he dont can get menuid by special chars.

3:as i know are quotes not needed
Code:
client_cmd(id, "speak ^"csm/menuselect.wav^"");
->
Code:
client_cmd(id, "speak csm/menuselect.wav");

At last test the menu by using a client_print message:client_print(id,print_chat,"you have pressed key %d",key)
__________________
schnitzelmaker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode