Raised This Month: $ Target: $400
 0% 

End Round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 09-18-2009 , 09:27   End Round.
Reply With Quote #1

Does anyone knows why there is "invaild expression, assumed zero" & expected token "}", but found "-end of file-"

PHP Code:
public zp_round_endediTeam )
{
    if ( 
iTeam == WIN_NO_ONE 
         return; 
 
          new 
idiPlayers32 ], iNumiPacks get_pcvar_numg_pCvarAmmoiTeam ] ) 
          
get_playersiPlayersiNum"ac" 
 
    for ( new 
iiNumi++ ) { 
         
zp_set_user_ammo_packsid
         
zp_get_user_ammo_packs( ( id iPlayers] ) ) + iPacks 
    }
 
    else
    {
 
    if ( 
iTeam == WIN_NO_ONE )
    {
         
client_print0print_chat"[ZP] %s"warning_notice )
         
set_task0.1"task_siren"BLAST_TASK )
         
set_task0.8"task_launch"BLAST_TASK )
         
set_task2.5"task_blast"BLAST_TASK )
         
remove_taskBLAST_TASK )
    }

Can someone help me with this ?

I want end round the Blast will take places.
Mr.Noobie is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-18-2009 , 09:29   Re: End Round.
Reply With Quote #2

Code:
public zp_round_ended( iTeam ) {     if ( iTeam == WIN_NO_ONE )          return;             new id, iPlayers[ 32 ], iNum, iPacks = get_pcvar_num( g_pCvarAmmo[ iTeam ] )           get_players( iPlayers, iNum, "ac" )       for ( new i; i < iNum; i++ ) {          zp_set_user_ammo_packs( id,          zp_get_user_ammo_packs( ( id = iPlayers[ i ] ) ) + iPacks )     }       else     {       if ( iTeam == WIN_NO_ONE )     {          client_print( 0, print_chat, "[ZP] %s", warning_notice )          set_task( 0.1, "task_siren", BLAST_TASK )          set_task( 0.8, "task_launch", BLAST_TASK )          set_task( 2.5, "task_blast", BLAST_TASK )          remove_task( BLAST_TASK )     } }

->

Code:
public zp_round_ended( iTeam ) {     if ( iTeam == WIN_NO_ONE )          return;       new id, iPlayers[ 32 ], iNum, iPacks = get_pcvar_num( g_pCvarAmmo[ iTeam ] )     get_players( iPlayers, iNum, "ac" )       for ( new i; i < iNum; i++ ) {          zp_set_user_ammo_packs( id,   zp_get_user_ammo_packs( ( id = iPlayers[ i ] ) + iPacks )  // I don't know what function you have used here! Use it correctly!!!     }       if ( iTeam == WIN_NO_ONE )     {          client_print( 0, print_chat, "[ZP] %s", warning_notice )          set_task( 0.1, "task_siren", BLAST_TASK )          set_task( 0.8, "task_launch", BLAST_TASK )          set_task( 2.5, "task_blast", BLAST_TASK )          remove_task( BLAST_TASK )     } }
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 09-18-2009 at 09:32.
ot_207 is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 09-18-2009 , 09:31   Re: End Round.
Reply With Quote #3

Quote:
Originally Posted by ot_207 View Post
Code:
public zp_round_ended( iTeam )</p><p>{</p><p> if ( iTeam == WIN_NO_ONE ) </p><p> return; </p><p>&nbsp;</p><p> new id, iPlayers[ 32 ], iNum, iPacks = get_pcvar_num( g_pCvarAmmo[ iTeam ] ) </p><p> get_players( iPlayers, iNum, "ac" ) </p><p>&nbsp;</p><p> for ( new i; i < iNum; i++ ) { </p><p> zp_set_user_ammo_packs( id, </p><p> zp_get_user_ammo_packs( ( id = iPlayers[ i ] ) ) + iPacks ) </p><p> }</p><p>&nbsp;</p><p>@@ else</p><p>@@ {</p><p>&nbsp;</p><p> if ( iTeam == WIN_NO_ONE )</p><p> {</p><p> client_print( 0, print_chat, "[ZP] %s", warning_notice )</p><p> set_task( 0.1, "task_siren", BLAST_TASK )</p><p> set_task( 0.8, "task_launch", BLAST_TASK )</p><p> set_task( 2.5, "task_blast", BLAST_TASK )</p><p> remove_task( BLAST_TASK )</p><p> }</p><p>}



->


Code:
</p><p>public zp_round_ended( iTeam )</p><p>{</p><p> if ( iTeam == WIN_NO_ONE ) </p><p> return; </p><p>&nbsp;</p><p> new id, iPlayers[ 32 ], iNum, iPacks = get_pcvar_num( g_pCvarAmmo[ iTeam ] ) </p><p> get_players( iPlayers, iNum, "ac" ) </p><p>&nbsp;</p><p> for ( new i; i < iNum; i++ ) { </p><p> zp_set_user_ammo_packs( id, </p><p> zp_get_user_ammo_packs( ( id = iPlayers[ i ] ) ) + iPacks ) </p><p> }</p><p>&nbsp;</p><p> if ( iTeam == WIN_NO_ONE )</p><p> {</p><p> client_print( 0, print_chat, "[ZP] %s", warning_notice )</p><p> set_task( 0.1, "task_siren", BLAST_TASK )</p><p> set_task( 0.8, "task_launch", BLAST_TASK )</p><p> set_task( 2.5, "task_blast", BLAST_TASK )</p><p> remove_task( BLAST_TASK )</p><p> }</p><p>}
Ya i did that, then the round end blast is not working.
Mr.Noobie is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-18-2009 , 09:32   Re: End Round.
Reply With Quote #4

Quote:
Originally Posted by Mr.Noobie View Post
Ya i did that, then the round end blast is not working.
What do you want to do exactly?
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 09-18-2009 , 09:36   Re: End Round.
Reply With Quote #5

Quote:
Originally Posted by Mr.Noobie View Post
if ( iTeam == WIN_NO_ONE )
return;

if ( iTeam == WIN_NO_ONE )
{
//...
}
WTF?
__________________
alan_el_more is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-18-2009 , 09:37   Re: End Round.
Reply With Quote #6

Quote:
Originally Posted by alan_el_more View Post
WTF?
I know, that is why I asked ...
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 09-18-2009 , 11:04   Re: End Round.
Reply With Quote #7

Ok this is end round reward :

PHP Code:
public zp_round_endediTeam )
{
    if ( 
iTeam == WIN_NO_ONE 
         return; 
     
    new 
idiPlayers32 ], iNumiPacks get_pcvar_numg_pCvarAmmoiTeam ] ) 
    
get_playersiPlayersiNum"ac" 
     
    for ( new 
iiNumi++ ) { 
         
zp_set_user_ammo_packsid
         
zp_get_user_ammo_packs( ( id iPlayers] ) ) + iPacks 
    } 
This is end round blast if no one win :

PHP Code:
    if ( iTeam == WIN_NO_ONE )
    {
         
client_print0print_chat"[ZP] %s"warning_notice )
         
set_task0.1"task_siren"BLAST_TASK )
         
set_task0.8"task_launch"BLAST_TASK )
         
set_task2.5"task_blast"BLAST_TASK )
         
remove_taskBLAST_TASK )
    }

I want like if there is team win then remove end round blast.

If no one win then end round blast no ammo pack reward.
Mr.Noobie is offline
Old 09-19-2009, 04:54
Mr.Noobie
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 09-20-2009, 23:53
Mr.Noobie
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
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 08:18.


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