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

API Scripting Help [Help] ZP Quiz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-08-2012 , 01:52   [Help] ZP Quiz
Reply With Quote #1

Why do i get
error: number of arguments does not match definition line 112

PHP Code:
public QuizProvera(id)
{
    if ( !
Quiz )
    {
        new 
Text32 ]
        
read_argv1Text31 )
        
        new 
Odgovor str_to_num(Text)
        if ( 
Odgovor == && ( QuizSolution != || Text] != '0' ) )
            return

        if ( 
QuizMaxAttempts[id] > )
        {
            if ( 
Odgovor == QuizSolution )
            {
                
Quiz true

                
static imeDobitnika[32]
                
get_user_name(idimeDobitnika31)
                
                
QuizRank[id] += 1
                QuizSacuvajRank
(idQuizRank[id])            
                
112---->                zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(QuizReward), 1)
                    
                
ColorChat(0TEAM_COLOR"^4[Quiz] ^3%s ^1je prvi tacno odgovorio na pitanje i sa rezultatom ^4(%i) ^1osvaja ^4%i$"imeDobitnikaOdgovorget_pcvar_num(QuizReward))
                
client_cmd(0"speak %s"SOUND3)
                
                {
                    
client_cmd(id"speak %s"SOUND1)
                    
ColorChat(idTEAM_COLOR"^4[Quiz] ^1Cestitamo vas odgovor ^4(%i) ^1je tacan, osvojili ste ^4%i$"Odgovorget_pcvar_num(QuizReward))    
                }
                
                
set_dhudmessage(0000.000.0000.00.0)
                for(new 
i=0;i<8;i++)
                    
show_dhudmessage(0"PS: Ova ne vidljiva poruka je ovde da bi se uklonila jedna greska ;)")
            }
            else
            {
                
QuizMaxAttempts[id]--
                new 
mnozina QuizMaxAttempts[id] == 1
    
                QuizGrammar 
mnozina
                ColorChat
(idTEAM_COLOR"^4[Quiz] ^1Vas odgovor ^4(%i) ^1je netacan, mozete pokusati jos ^4%i ^1put%s"OdgovorQuizMaxAttempts[id], (QuizGrammar mnozina) ? "" "a")
            }
        }
        else
        {
            
ColorChat(idGREEN"^4[Quiz] ^1Nemate vise pokusaja u ovom kolu, strpite se malo ^4:)")
        }
    }

__________________

Last edited by H.RED.ZONE; 01-08-2012 at 13:53.
H.RED.ZONE is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 01-08-2012 , 02:00   Re: [Help] ZP Quiz
Reply With Quote #2

PHP Code:
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(QuizReward), 1
to

PHP Code:
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) + get_pcvar_num(QuizReward)) 
__________________
Isaac999 is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-08-2012 , 03:15   Re: [Help] ZP Quiz
Reply With Quote #3

Thank you needs lot of fixing didnt saw it (:
__________________
H.RED.ZONE is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 01-08-2012 , 05:56   Re: [Help] ZP Quiz
Reply With Quote #4

NP
__________________
Isaac999 is offline
Reply


Thread Tools
Display Modes

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 21:50.


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