Jump to content
  • 0

Problema GangZone War


SaLiErY

Question

Buna sa fiu sincer dupa ce am "rupt internetu in 2" am gasit un tutorial de gangzonewar cum sa faci dar imi da urmatorele erori

have a program when i compile  have 4 error pls help fix the error is

(652) : error 017: undefined symbol "ZoneInfo"
(653) : error 017: undefined symbol "ZoneInfo"
(654) : error 017: undefined symbol "ZoneInfo"
(2543) : error 017: undefined symbol "ZoneInfo"
and the line is 652 
new ZoneAttacker[sizeof(ZoneInfo)] = {-1, ...};
653 
new ZoneAttackTime[sizeof(ZoneInfo)];
654 
new ZoneDeaths[sizeof(ZoneInfo)];
2543
stock IsPlayerInZone(playerid, zoneid)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    return (x > ZoneInfo[zoneid][zMinX] && x < ZoneInfo[zoneid][zMaxX] && y > ZoneInfo[zoneid][zMinY] && y < ZoneInfo[zoneid][zMaxY]);
}

P.S tutorialu lam luat de aici http://forum.sa-mp.com/showthread.php?t=276352

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Nu ai definit ZoneInfo, in tutorialul acela ZoneInfo este asa:

[pawn]enum eZone

{

    Float:zMinX,

    Float:zMinY,

    Float:zMaxX,

    Float:zMaxY,

    zTeam

}

new ZoneInfo[ ][ eZone ] = {

    { 2337.9004, -1808.8383, 2590.2043, -1610.3673, TEAM_GROVE },

    { 2084.7, -1808.8383, 2337.9004, -1610.3673, TEAM_BALLAS },

    { 2590.2043, -1808.8383, 2842.3, -1610.3673, TEAM_VAGOS }

};[/pawn]


Erorile acelea sunt clare, ele zic: "Simbolul "ZoneInfo" nu este definit". Daca nu stii engleza n-ai sanse in Pawno.

Link to comment
Share on other sites

am si eu o problema la asta :

(2577) : error 020: invalid symbol name ""
(2579) : error 029: invalid expression, assumed zero
(2579) : warning 215: expression has no effect
(2579) : error 001: expected token: ";", but found "]"
(2579) : error 029: invalid expression, assumed zero
(2579) : fatal error 107: too many error messages on one line
2577 for(new t=0; t != sizeof(Teams); t++) 
2579 if(Teams[t] != ZoneInfo[i][zTeam] && GetPlayersInZone(i, Teams[t]) >= MIN_MEMBERS_TO_START_WAR)

Dark StunT New Version => 60%

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.