Raised This Month: $32 Target: $400
 8% 

/shop , /pts


Post New Thread Reply   
 
Thread Tools Display Modes
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-28-2021 , 15:40   Re: /shop , /pts
Reply With Quote #11

Change it from argbreak to strbreak
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 12-29-2021 at 02:43. Reason: The stock was not support old version
Supremache is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-28-2021 , 16:03   Re: /shop , /pts
Reply With Quote #12

Quote:
Originally Posted by Supremache View Post
Change it from argbreak to strbreak or use this stock

PHP Code:
stock argbreak(const text[], left[], leftlenright[], rightlen)
{
    new 
pos argparse(text0leftleftlen);

    if (
pos == -1)
    {
        return -
1;
    }

    new 
textlen strlen(text);

    while (
pos textlen && isspace(text[pos]))
    {
        
pos++;
    }

    
copy(rightrightlentext[pos]);

    return 
pos;

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 120
Error: Undefined symbol "argbreak" on line 120
Error: Invalid expression, assumed zero on line 120
Error: Too many error messages on one line on line 120

Compilation aborted.
4 Errors.
Could not locate output file D:\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
__________________
Thank You For Helps
Discord:
null.#0096
https://www.youtube.com/@NullHere/
SHIFT0 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-29-2021 , 02:35   Re: /shop , /pts
Reply With Quote #13

Quote:
Originally Posted by SHIFT0 View Post
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 120
Error: Undefined symbol "argbreak" on line 120
Error: Invalid expression, assumed zero on line 120
Error: Too many error messages on one line on line 120

Compilation aborted.
4 Errors.
Could not locate output file D:\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
PHP Code:
argbreakszMessage], szMessage], charsmaxszMessage[ ] ), szMessage], charsmaxszMessage[ ] ) )

argbreakszMessageszPlayercharsmaxszPlayer ), szPointscharsmaxszPoints ) ) 
->
PHP Code:
strbreakszMessage], szMessage], charsmaxszMessage[ ] ), szMessage], charsmaxszMessage[ ] ) )

strbreakszMessageszPlayercharsmaxszPlayer ), szPointscharsmaxszPoints ) ) 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 12-29-2021 at 02:41.
Supremache is offline
lEarNinG @ WCS
Junior Member
Join Date: Dec 2020
Old 01-03-2022 , 09:06   Re: /shop , /pts
Reply With Quote #14

Can you do Points Shop menu something like this:

[Shop]
Items
1. Get 1 hours vip 400 points
2. Get 2 hours vip 650 points
3. Get Smoke grenade 50 Points
lEarNinG @ WCS is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 01-03-2022 , 10:09   Re: /shop , /pts
Reply With Quote #15

@SHIFT0; fixed
PHP Code:
#if !defined argbreak
    #define argbreak strbreak
#endif 
@lEarNinG @ WCS;
PHP Code:
new const g_szData[ ][ eItemsData ] = 
{    
/* Item info, Option, Price, item count or Expire Date etc */
    
"VIP for one hour""abcdefghijklmnopqrstuvwxy"600},
    { 
"VIP for two hour""abcdefghijklmnopqrstuvwxy"900},
    { 
"VIP for six hour""abcdefghijklmnopqrstuvwxy"2000},
    { 
"Smoke Grenade""weapon_smokegrenade"25},
    { 
"Extra speed""300"25}, // The speed get rest when the player die or disconnected
    
"25 Hp""25"25/* Max HP */ 255 }, //You can set max hp: defualt is 255
    
"25 Armor""25"25/* Max Armor */ 255 //You can set max armor: defualt is 255

Attached Files
File Type: sma Get Plugin or Get Source (Points.sma - 97 views - 12.0 KB)
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 01-04-2022 at 10:31.
Supremache is offline
lEarNinG @ WCS
Junior Member
Join Date: Dec 2020
Old 01-04-2022 , 02:16   Re: /shop , /pts
Reply With Quote #16

Thanks
Supremache
But I got Problem whit Plugin


I test to add VIP for my self in server, saying add password but when i add just do not give any vip access

https://i.imgur.com/sD1eXDv.jpg

https://i.imgur.com/In5mYIj.jpg

nothing happened still like normal player do not get anything extra what is should get when became VIP :///


And if you can add extra items to menu
Smoke granade 25 points
Extra speed 25 points
25Hp 25 points
25 Armor 25 points
Vip 1 hours 600 points
Vip 2 hours 900 points
Vip 6 hours 2000 points

Last edited by lEarNinG @ WCS; 01-04-2022 at 07:56.
lEarNinG @ WCS is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 01-04-2022 , 08:46   Re: /shop , /pts
Reply With Quote #17

Quote:
But I got Problem whit Plugin
What is the problem!!!

Quote:
I test to add VIP for my self in server, saying add password but when i add just do not give any vip access

https://i.imgur.com/sD1eXDv.jpg

https://i.imgur.com/In5mYIj.jpg
Can you tell me how you known you didn't get any vip access ??
After you buy vip you can check you get the vip access by two ways:
1. By using the command that check online vips; Say /vips
2. Reconnect to the server and when you do that will see the vip connect message
Ps: Be sure you have the same access of these features, check VIPSettings.ini
Code:
new const g_szData[ ][ eItemsData ] = {   
 1) Item info: It is the item name that show on the menu
 2) It is the item target that will give for who buying the item
 3) It is the item cost
 4) it is the vip date ( 1/2/3/4/5 etc day )
    { "VIP for one hour", "abcdefg", 400, 1 },     { "VIP for two hour", "bcde", 650, 2 },     { "Smoke Grenade", "weapon_smokegrenade", 50, 0 } }
Quote:
nothing happened still like normal player do not get anything extra what is should get when became VIP :///
The answer..

Quote:
And if you can add extra items to menu
Smoke granade 25 points
Extra speed 25 points
25Hp 25 points
25 Armor 25 points
Vip 1 hours 600 points
Vip 2 hours 900 points
Vip 6 hours 2000 points
Here is it
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 01-04-2022 at 10:06.
Supremache is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 01-04-2022 , 17:48   Re: /shop , /pts
Reply With Quote #18

Quote:
Originally Posted by lEarNinG @ WCS View Post
Thanks
Supremache
But I got Problem whit Plugin


I test to add VIP for my self in server, saying add password but when i add just do not give any vip access

https://i.imgur.com/sD1eXDv.jpg

https://i.imgur.com/In5mYIj.jpg

nothing happened still like normal player do not get anything extra what is should get when became VIP :///


And if you can add extra items to menu
Smoke granade 25 points
Extra speed 25 points
25Hp 25 points
25 Armor 25 points
Vip 1 hours 600 points
Vip 2 hours 900 points
Vip 6 hours 2000 points
I asking him for this plugin for 1month u came to tell him what to do ?
and u want change everything
Really ? Man wait when i say Solved or ty then tell him what change
Some Respect MAN
__________________
Thank You For Helps
Discord:
null.#0096
https://www.youtube.com/@NullHere/
SHIFT0 is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 01-04-2022 , 17:49   Re: /shop , /pts
Reply With Quote #19

Quote:
Originally Posted by Supremache View Post
@SHIFT0; fixed
PHP Code:
#if !defined argbreak
    #define argbreak strbreak
#endif 
@lEarNinG @ WCS;
PHP Code:
new const g_szData[ ][ eItemsData ] = 
{    
/* Item info, Option, Price, item count or Expire Date etc */
    
"VIP for one hour""abcdefghijklmnopqrstuvwxy"600},
    { 
"VIP for two hour""abcdefghijklmnopqrstuvwxy"900},
    { 
"VIP for six hour""abcdefghijklmnopqrstuvwxy"2000},
    { 
"Smoke Grenade""weapon_smokegrenade"25},
    { 
"Extra speed""300"25}, // The speed get rest when the player die or disconnected
    
"25 Hp""25"25/* Max HP */ 255 }, //You can set max hp: defualt is 255
    
"25 Armor""25"25/* Max Armor */ 255 //You can set max armor: defualt is 255

Thanks Supremache
__________________
Thank You For Helps
Discord:
null.#0096
https://www.youtube.com/@NullHere/
SHIFT0 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 01-04-2022 , 20:21   Re: /shop , /pts
Reply With Quote #20

Quote:
Originally Posted by SHIFT0 View Post
I asking him for this plugin for 1month u came to tell him what to do ?
and u want change everything
Really ? Man wait when i say Solved or ty then tell him what change
Some Respect MAN
Huh !!
What is this ? https://forums.alliedmods.net/showpo...67&postcount=2
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Reply



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 18:59.


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