AlliedModders

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

Copper 05-23-2016 12:55

DELETED
 
deleted!

siriusmd99 05-23-2016 13:31

Re: Help me with this plugin.
 
I think it shall be:

if(pokes[id] >= got)

Copper 05-23-2016 13:39

Re: Help me with this plugin.
 
Quote:

Originally Posted by siriusmd99 (Post 2421447)
I think it shall be:

if(pokes[id] >= got)

I was able to receive the pokemon, but now there's no limit of how many I can choose. I only wanted so that I was able to choose only 1.

skz 05-23-2016 14:01

Re: Help me with this plugin.
 
inside the function, this dont make sense: pokes[id] += 0;

I think that what you're trying to do is pokes[id] ++

Copper 05-23-2016 14:10

Re: Help me with this plugin.
 
Quote:

Originally Posted by skz (Post 2421456)
inside the function, this dont make sense: pokes[id] += 0;

I think that what you're trying to do is pokes[id] ++

Even tho I changed it to what you said, I am still getting the same error. Which I want people to be able to choose only 1 pokemon instead of being able to choose a lot of them.

skz 05-23-2016 15:03

Re: Help me with this plugin.
 
your cvar pm_poke_num must have the value 1

PHP Code:

if( pokes[id] < got)
    {
        new 
name[33];
        
get_user_name(id,name,32)
        
server_cmd("pm_givepoke ^"%s^" %s %d"namestartpokes[key], pokelevel[key])
        
pokes[id] ++;
        
Save_Gives(id)
    } 


Copper 05-23-2016 16:23

Re: Help me with this plugin.
 
Quote:

Originally Posted by skz (Post 2421483)
your cvar pm_poke_num must have the value 1

PHP Code:

if( pokes[id] < got)
    {
        new 
name[33];
        
get_user_name(id,name,32)
        
server_cmd("pm_givepoke ^"%s^" %s %d"namestartpokes[key], pokelevel[key])
        
pokes[id] ++;
        
Save_Gives(id)
    } 


Now that I changed the code when I try to choose a pokemon it tells me "You cannot take start pokemons"

skz 05-23-2016 18:42

Re: Help me with this plugin.
 
because you already have one?

Copper 05-23-2016 18:51

Re: Help me with this plugin.
 
I already have a pokemon on me but it wasn't given to me by the list when I type /freepoke

skz 05-23-2016 21:10

Re: Help me with this plugin.
 
Because this plugin uses nvault, which saves your pokemon even if you change the map, restart server, etc.


All times are GMT -4. The time now is 18:35.

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