Raised This Month: $ Target: $400
 0% 

DELETED


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-23-2016 , 12:55   DELETED
Reply With Quote #1

deleted!

Last edited by Copper; 05-27-2016 at 17:41.
Copper is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-23-2016 , 13:31   Re: Help me with this plugin.
Reply With Quote #2

I think it shall be:

if(pokes[id] >= got)
siriusmd99 is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-23-2016 , 13:39   Re: Help me with this plugin.
Reply With Quote #3

Quote:
Originally Posted by siriusmd99 View Post
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.
Copper is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-23-2016 , 14:01   Re: Help me with this plugin.
Reply With Quote #4

inside the function, this dont make sense: pokes[id] += 0;

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

Last edited by skz; 05-23-2016 at 14:01.
skz is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-23-2016 , 14:10   Re: Help me with this plugin.
Reply With Quote #5

Quote:
Originally Posted by skz View Post
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.
Copper is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-23-2016 , 15:03   Re: Help me with this plugin.
Reply With Quote #6

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)
    } 
__________________
skz is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-23-2016 , 16:23   Re: Help me with this plugin.
Reply With Quote #7

Quote:
Originally Posted by skz View Post
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"
Copper is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-23-2016 , 18:42   Re: Help me with this plugin.
Reply With Quote #8

because you already have one?
__________________
skz is offline
Copper
Senior Member
Join Date: Feb 2012
Location: California
Old 05-23-2016 , 18:51   Re: Help me with this plugin.
Reply With Quote #9

I already have a pokemon on me but it wasn't given to me by the list when I type /freepoke
Copper is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-23-2016 , 21:10   Re: Help me with this plugin.
Reply With Quote #10

Because this plugin uses nvault, which saves your pokemon even if you change the map, restart server, etc.
__________________
skz 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:35.


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