Jump to content
  • 0

Ajutor Warning


Question

Posted

Salut incerc sa fac un gamemode si am intampinat o problema, nu neaparat atat de mare dar trebuie rezolvata ,problema este ca, cand dau compile imi da 3 warning-uri

warning 215: expression has no effect 

warning 215: expression has no effect

warning 215: expression has no effect

Astea sunt warningurile, iar cand pornesc serverul in consola apare asta:


Script[gamemodes/grandlarc.amx]: Run time error 19: "File or function is not found"

MA PUTETI AJUTA VA ROG MULT !!! 

MULTUMESC

6 answers to this question

Recommended Posts

  • 0
Posted
Acum 53 minute, iSorin[] a spus:

Pai un cod sursa ? :)) 

public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~SucKer",3000,79);
      SendClientMessage(playerid,COLOR_WHITE,"Bun Venit Pe Server-ul Nostru");
      
      // class selection init vars
      gPlayerCitySelection[playerid] = -1;
    gPlayerHasCitySelected[playerid] = 0;
    gPlayerLastCitySelectionTick[playerid] = GetTickCount();
    gPoliceSpawns[playerid];
    gArmySpawns[playerid];
    gMedicalSpawns[playerid];

    //SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);

    /*
    Removes vending machines
    RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
    */
    
    /*
    new ClientVersion[32];
    GetPlayerVersion(playerid, ClientVersion, 32);
    printf("Player %d reports client version: %s", playerid, ClientVersion);*/

    return 1;
}

 

Asta e ok ? sunt mai la inceput scuze !

  • 0
Posted
Chiar acum, Dorel a spus:

public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,"~w~SucKer",3000,79);
      SendClientMessage(playerid,COLOR_WHITE,"Bun Venit Pe Server-ul Nostru");
      
      // class selection init vars
      gPlayerCitySelection[playerid] = -1;
    gPlayerHasCitySelected[playerid] = 0;
    gPlayerLastCitySelectionTick[playerid] = GetTickCount();
    gPoliceSpawns[playerid];
    gArmySpawns[playerid];
    gMedicalSpawns[playerid];

    //SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);

    /*
    Removes vending machines
    RemoveBuildingForPlayer(playerid, 1302, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1209, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 955, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1775, 0.0, 0.0, 0.0, 6000.0);
    RemoveBuildingForPlayer(playerid, 1776, 0.0, 0.0, 0.0, 6000.0);
    */
    
    /*
    new ClientVersion[32];
    GetPlayerVersion(playerid, ClientVersion, 32);
    printf("Player %d reports client version: %s", playerid, ClientVersion);*/

    return 1;
}

 

Asta e ok ? sunt mai la inceput scuze !

Pai si care sunt liniile exacte ?

  • 0
Posted
Acum 1 minut, Dorel a spus:

90,91,92

Pai iti da errorile alea pentru ca nu le-ai setat o valoare.
Pune '= 0;' la liniile alea.

 

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.