SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/12/2012, 11:26 AM   #1
The God
Big Clucker
 
Join Date: Jun 2011
Posts: 57
Reputation: -1
Default Problem with: error 008 and error 029

Im making teams with gang zones, and I have a problem with this.
Code:
(21450) : error 029: invalid expression, assumed zero
(21450) : error 008: must be a constant expression; assumed zero
(21451) : error 029: invalid expression, assumed zero
(21451) : error 008: must be a constant expression; assumed zero
(21452) : error 029: invalid expression, assumed zero
(21452) : error 008: must be a constant expression; assumed zero
(21453) : error 029: invalid expression, assumed zero
(21453) : error 008: must be a constant expression; assumed zero
Code:
stock GetTeamZoneColor(teamid)
{
    switch(teamid)
    {
        case TEAM_GROVE: return 0x00FF0088; // 21450
        case TEAM_BALLAS: return 0xFF00FF88; // 21451
        case TEAM_VAGOS: return 0xFFFF0088; // 21452
        case TEAM_VARRIO: return 0xF0F8FF88; // 21453
        }

    return 0;
}
The God is offline   Reply With Quote
Old 13/12/2012, 11:28 AM   #2
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: Problem with: error 008 and error 029

This is possible i guess.

pawn Code:
stock GetTeamZoneColor(teamid)
{
    switch(teamid)
    {
        case 0: return 0x00FF0088; // 21450
        case 1: return 0xFF00FF88; // 21451
        case 2: return 0xFFFF0088; // 21452
        case 3: return 0xF0F8FF88; // 21453
    }

    return 0;
}
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 13/12/2012, 11:30 AM   #3
The God
Big Clucker
 
Join Date: Jun 2011
Posts: 57
Reputation: -1
Default Re: Problem with: error 008 and error 029

It worked!
Thank you!
The God is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 170) the_zohan Scripting Help 5 04/06/2012 08:38 AM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 03:50 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.