Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20522) : error 010: invalid function or declaration
C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20537) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20544) : error 010: invalid function or declaration

 

CMD:bonus(playerid, params[])
{
    TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
    SelectTextDraw(playerid, 0xFF0000FF);
     }
     return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == TDEditor_TD[1])
    {
       TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
    SendClientMessage(playerid, COLOR_BLUE, "Ai primit ca bonus 100.000$.");
    GivePlayerCash(playerid, 100000);
    CancelSelectTextDraw(playerid);
    }
    if(clickedid == TDEditor_TD[2])
    }
    TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
    CancelSelectTextDraw(playerid);
    }
       return 1;
}

 

CE ESTE GRESIT?

5 answers to this question

Recommended Posts

  • 0
Posted
22 minutes ago, Dennis12. said:

Prezinta-mi liniile la care primesti erorile.

20522

     }
     return 1;
}

20537

    }
    if(clickedid == TDEditor_TD[2])
    }

20544

    }
       return 1;
}

 

  • 0
Posted
Acum 4 ore, K0hL a spus:

C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20522) : error 010: invalid function or declaration
C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20537) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\BigZoneGM\gamemodes\BigZoneGM.pwn(20544) : error 010: invalid function or declaration

 

CMD:bonus(playerid, params[])
{
    TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
    TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
    SelectTextDraw(playerid, 0xFF0000FF);
     }
     return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == TDEditor_TD[1])
    {
       TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
    SendClientMessage(playerid, COLOR_BLUE, "Ai primit ca bonus 100.000$.");
    GivePlayerCash(playerid, 100000);
    CancelSelectTextDraw(playerid);
    }
    if(clickedid == TDEditor_TD[2])
    }
    TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
    TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
    CancelSelectTextDraw(playerid);
    }
       return 1;
}

 

CE ESTE GRESIT?

Texdraw ul este de tip global sau player?

  • 0
Posted
15 hours ago, valivaly96 said:

Texdraw ul este de tip global sau player?

gata, s-a rezolvat nu pusesem ceva bine cat si return si altele.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.