Jump to content

Question

Posted

Deci pls puteti sa ma ajutati ca am adaugat luxadmin in sv meu

Acestea sunt erorile (Ma intreseaza doar erorile warningurile le las...doar erorile ma intreseaza dc apar..)

[pawn]../include/gl_common.inc(80) : error 021: symbol already defined: "strtok"

../include/gl_common.inc(139) : error 021: symbol already defined: "isNumeric"

C:\Users\Al3x\Desktop\gm nou\gamemodes\grandlarc.pwn(79) : warning 216: nested comment

C:\Users\Al3x\Desktop\gm nou\gamemodes\grandlarc.pwn(81) : warning 216: nested comment

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.[/pawn]

Pentru linia 80 acestea sunt in jurul lini 80

[pawn]//----------------------------------------------------------

public OnPlayerConnect(playerid)

{

GameTextForPlayer(playerid,"~w~Grand Larceny",3000,4);

  SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}G{FFFFFF}rand {88AA88}L{FFFFFF}arceny");

 

  // class selection init vars

  gPlayerCitySelection[playerid] = -1;

gPlayerHasCitySelected[playerid] = 0;

gPlayerLastCitySelectionTick[playerid] = GetTickCount();

//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);

//Kick(playerid);

/*

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;

}

//----------------------------------------------------------[/pawn]

Acestea sunt in jurul lini 139

[pawn] //SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);

SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);

    SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);

   

   

    GivePlayerWeapon(playerid,WEAPON_COLT45,100);

//GivePlayerWeapon(playerid,WEAPON_MP5,100);

TogglePlayerClock(playerid, 0);

return 1;

}[/pawn]

2 answers to this question

Recommended Posts

Posted

/include/gl_common.inc(80) : error 021: symbol already defined: "strtok"          }

                                                                                                                } = >

../include/gl_common.inc(139) : error 021: symbol already defined: "isNumeric" }

Simbolul strtok si isNumeric se afla si in gl_common.inc dar si in gamemode-ul tau , so pune strtok1 si isNumeric1 ca sa numai dea ( ori in inc sau gm ).

Linia 79 nu o inteleg nici 81 nu imi dau seama care este ...

idiots.png
Posted

[pawn]//----------------------------------------------------------

public OnPlayerConnect(playerid)

{

GameTextForPlayer(playerid,"~w~Grand Larceny",3000,4);

  SendClientMessage(playerid,COLOR_WHITE,"Welcome to {88AA88}G{FFFFFF}rand {88AA88}L{FFFFFF}arceny");

 

  // class selection init vars

  gPlayerCitySelection[playerid] = -1;

gPlayerHasCitySelected[playerid] = 0;

gPlayerLastCitySelectionTick[playerid] = GetTickCount();

//SetPlayerColor(playerid,COLOR_NORMAL_PLAYER);

//Kick(playerid);

/*

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;

}

//----------------------------------------------------------[/pawn]

Simbolurile strtok si isNumeric sunt deja definite deci poti sa le stergi.

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.