AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help (https://forums.alliedmods.net/showthread.php?t=217144)

risontek22 05-30-2013 10:54

help
 
PHP Code:

    new VIPItem[64],EVIPItem[64]
    
    
formatex(VIPItem,63,"VIP Tags : \y[VIP]\w,\y[V-I-P]\w,\y[VipKo]^R\wAktualne : \y%s^\n\d======================",menu_prefixes[UserPrefix[id]])
    
formatex(EVIPItem,63,"EVIP Tags : \y[Evip]\w,\y[Extra-Vip]\w,\y[Evipko]^R\wAktualne : \y%s",menu_prefixes[UserPrefix[id]]) 

where is the problem ?

EpicMonkey 05-30-2013 11:16

Re: help
 
PHP Code:

"VIP Tags : \y[VIP]\w,\y[V-I-P]\w,\y[VipKo]^R\wAktualne : \y%s^\n\d======================" 

Thats 88 characters long, and your array size is 64.

PHP Code:

new VIPItem[64


risontek22 06-01-2013 03:36

Re: help
 
i tried this but the problem is same :

Error: Invalid character constant on line

PHP Code:

    new VIPItem[200],EVIPItem[200]
    
    
formatex(VIPItem,199,"VIP Tags : \y[VIP]\w,\y[V-I-P]\w,\y[VipKo]^R\wAktualne : \y'^^%s'^n\d======================",menu_prefixes[UserPrefix[id]])
    
formatex(EVIPItem,199,"EVIP Tags : \y[Evip]\w,\y[Extra-Vip]\w,\y[Evipko]^R\wAktualne : \y'^^%s'",menu_prefixes[UserPrefix[id]]) 


hornet 06-01-2013 06:01

Re: help
 
You seem confused in regards to using special string characters. Show how you would like the text to be displayed.

risontek22 06-01-2013 06:43

Re: help
 
in the menu :
1. VIP Tags : \y[VIP]\w,\y[V-I-P]\w,\y[Vipko]\w Currently : %s (menu_prefixes[UserPrefix[id]])
\d=========================================== ===========
2. EVIP Tags : \y[Evip]\w,\y[Extra-Vip]\w,\y[Evipko]\w Currently : %s (menu_prefixes[UserPrefix[id]])

ConnorMcLeod 06-01-2013 14:04

Re: help
 
If you are using new menu, max item name size is 64.


All times are GMT -4. The time now is 16:22.

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