Raised This Month: $ Target: $400
 0% 

wierd tag mismatch (guess)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 16:37   wierd tag mismatch (guess)
Reply With Quote #1

PHP Code:
public retrieve_hpupgrade(id)
{
    static 
Floathpupgrade
    
switch (g_lvlhp[id])
    {
        case 
0hpupgrade 1.0
        
case 1hpupgrade 1.10
        
case 2hpupgrade 1.15
        
case 3hpupgrade 1.20
        
case 4hpupgrade 1.25
        
case 5hpupgrade 1.30
        
case 6hpupgrade 1.35
        
case 7hpupgrade 1.40
        
case 8hpupgrade 1.45
        
case 9hpupgrade 1.50
        
case 10hpupgrade 1.55
    
}
    return 
hpupgrade

tag mismatch...
now i try it does really dont work
what should i do?

Last edited by Speed!; 02-06-2009 at 16:41.
Speed! is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-06-2009 , 16:44   Re: wierd tag mismatch (guess)
Reply With Quote #2

PHP Code:
static Floathpupgrade

// ->

new Float:hpupgrade
__________________
xPaw is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 16:48   Re: wierd tag mismatch (guess)
Reply With Quote #3

Quote:
Originally Posted by xPaw View Post
PHP Code:
static Floathpupgrade

// ->

new Float:hpupgrade
one question, what does actually semicolon mean? never knew :S
Speed! is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-06-2009 , 17:05   Re: wierd tag mismatch (guess)
Reply With Quote #4

Quote:
Originally Posted by Speed! View Post
one question, what does actually semicolon mean? never knew :S
http://en.wikipedia.org/wiki/Semicolon#Computing_usage

If you set semicolon 1 all lines have to put ; to finish it.

Example

cs_set_user_team(id, CS_TEAM_T); <-- that all lines exept if( XXXX ) Here no... And clean lines.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 16:51   Re: wierd tag mismatch (guess)
Reply With Quote #5

still tag mistmatch, the most weird thing is that the line that shows as warned, is the closing public }

PHP Code:
public retrieve_gravityupgrade(id)
{
    new 
Float:retrievegravityupgrade;
    switch (
g_lvlgravity[id])
    {
        case 
0retrievegravityupgrade 1.00
        
case 1retrievegravityupgrade 1.10
        
case 2retrievegravityupgrade 1.15
        
case 3retrievegravityupgrade 1.20
        
case 4retrievegravityupgrade 1.25
        
case 5retrievegravityupgrade 1.30
        
case 6retrievegravityupgrade 1.35
        
case 7retrievegravityupgrade 1.40
        
case 8retrievegravityupgrade 1.45
        
case 9retrievegravityupgrade 1.50
        
case 10retrievegravityupgrade 1.55
    
}
    return 
retrievegravityupgrade

Speed! is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 02-06-2009 , 16:52   Re: wierd tag mismatch (guess)
Reply With Quote #6

Try
Code:
public Float:retrieve_gravityupgrade(id) {
__________________
MeRcyLeZZ is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 17:00   Re: wierd tag mismatch (guess)
Reply With Quote #7

Quote:
Originally Posted by MeRcyLeZZ View Post
Try
Code:
public Float:retrieve_gravityupgrade(id) {
i love u mercy
for ur help and for ZP
Speed! 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 01:41.


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