AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [HELP] error 088: (https://forums.alliedmods.net/showthread.php?t=281666)

Dr Zayd 04-17-2016 04:37

[HELP] error 088:
 
- Lines :

PHP Code:

        switch ( random100 ) )
        {
            case 
0..49:
            {
            
                
zp_set_user_ammo_packsclient "zp_get_user_ammo_packs( client ) + points" ); // line 86
            
                
ColorChat0"%L"LANG_PLAYER"GAMBLE_MSG_WIN"GetUserNameclient ), points );
            
            }
            
            case 
50..100:
            {
            
                
zp_set_user_ammo_packsclient zp_get_user_ammo_packsclient ) - points); // line 95
            
                
ColorChat0"%L"LANG_PLAYER"GAMBLE_MSG_LOST"GetUserNameclient ), points );
            
            } 

- Error :

Code:

zp_gamble.sma(86) : error 088: number of arguments does not match definition
zp_gamble.sma(95) : error 088: number of arguments does not match definition


siriusmd99 04-17-2016 07:37

Re: [HELP] error 088:
 
it's not zp it's colorchat

Change

ColorChat( 0, "%L", LANG_PLAYER, "GAMBLE_MSG_WIN", GetUserName( client ), points );

to

ColorChat( 0, NORMAL, "%L", LANG_PLAYER, "GAMBLE_MSG_WIN", GetUserName( client ), points );

There are NORMAL, GREEN, TEAM_COLOR

OciXCrom 04-17-2016 08:53

Re: [HELP] error 088:
 
Remove the quotes from line 86.

siriusmd99 04-17-2016 10:33

Re: [HELP] error 088:
 
why random 100?

50/100= 1/2

use just :

if(random(2))
//code
else
//code..

Dr Zayd 04-17-2016 12:39

Re: [HELP] error 088:
 
still have same errors

OciXCrom 04-17-2016 12:53

Re: [HELP] error 088:
 
We can't access your computer or brain memory and see them, can we?

Dr Zayd 04-17-2016 15:34

Re: [HELP] error 088:
 
Quote:

Originally Posted by OciXCrom (Post 2411885)
We can't access your computer or brain memory and see them, can we?

I dont understand what you mean ??

siriusmd99 04-17-2016 15:42

Re: [HELP] error 088:
 
He means that you shall post full code to understand where error comes from.

amir saiaoud 04-17-2016 15:43

Re: [HELP] error 088:
 
Problem From The Native above
PHP Code:

native zp_set_user_ammo_packsid 

to
PHP Code:

native zp_set_user_ammo_packsid ,amount


Black Rose 04-17-2016 16:20

Re: [HELP] error 088:
 
Quote:

Originally Posted by siriusmd99 (Post 2411940)
He means that you shall post full code to understand where error comes from.

No he means post the new errors.


All times are GMT -4. The time now is 23:15.

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