Results 1 to 8 of 8

Thread: Meaning

  1. #1
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts

    Meaning

    What does it mean?

    ******* script compile error *******
    bad syntax: (file 'scripts/bonuses.gsc', line 297)
    AllClientsPrint("Lost " + );
    *
    ************************************
    Last edited by Mariusz; 18th October 2017 at 14:57. Reason: spaces

  2. The Following User Says Thank You to Mariusz For This Useful Post:

    kubislav23 (19th October 2017)

  3. #2
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    Quote Originally Posted by Mariusz View Post
    What does it mean?

    ******* script compile error *******
    bad syntax: (file 'scripts/bonuses.gsc', line 297)
    AllClientsPrint("Lost " + );
    *
    ************************************
    You try to combine two strings in AllClientsPrint parameter, but there is only one string. Delete that plus inside AllClientsPring()

  4. The Following User Says Thank You to Whiskas For This Useful Post:

    Mariusz (18th October 2017)

  5. #3
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts
    Thanks. Next

    ******* script compile error *******
    uninitialised variable 'w': (file 'scripts/shops.gsc', line 533)
    switch(w)
    *
    ************************************
    Last edited by Mariusz; 3rd November 2017 at 18:40. Reason: Error once again. TTIDremember.

  6. The Following User Says Thank You to Mariusz For This Useful Post:

    kubislav23 (19th October 2017)

  7. #4
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts
    This again. Please...

    ******* script compile error *******
    uninitialised variable 'w': (file 'scripts/shops.gsc', line 533)
    switch(w)
    *
    ************************************

  8. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,010
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Post the full source of the function, otherwise it makes no sense
    timescale 0.01

  9. #6
    Private Mariusz's Avatar
    Join Date
    Sep 2017
    Posts
    67
    Thanks
    8
    Thanked 43 Times in 43 Posts
    WeaponToName(weapon)
    {
    cost = 0;
    switch(w)
    {
    case "chainsaw_mp": cost=100;name="Chainsaw";break;
    case "crowbar_mp": cost=50;name="Crowbar";break;
    case "colt_mp": cost=50;name="Colt";break;
    case "mp40_mp": cost=100;name="Mp40";break;
    case "thompson_mp": cost=150;name="Thompson";break;
    case "mp44_mp": cost=150;name="Mp44";break;
    case "mp5_mp": cost=150;name="Mp5";break;
    case "p90_mp": cost=150;name="P90";break;
    case "kar98k_mp": cost=150;name="Kar98k";break;
    case "ak47_mp": cost=150;name="Ak47";break;
    case "sten_mp": cost=150;name="Sten";break;
    case "pps42_mp": cost=150;name="Pps42";break;
    case "g43_mp": cost=100;name="G43";break;
    case "m1garand_mp": cost=100;name="M1garand";break;
    case "m1carbine_mp": cost=150;name="M1carbine";break;
    case "ak74_mp": cost=150;name="Ak74";break;
    case "bren_mp": cost=150;name="Flamethrower";break;
    case "springfield_mp": cost=100;name="Springfield";break;
    case "kar98k_sniper_mp": cost=200;name="Kar98k Sniper";break;
    case "mg42_mp": cost=2000;name="Mg42";break;
    case "wunderwaffe_mp": cost=15000;name="Wunderwaffe";break;
    case "m249_mp": cost=1000;name="M249";break;
    case "shotgun_mp": cost=350;name="Shotgun";break;
    case "raygun_mp": cost=2500;name="Raygun";break;
    case "m1014_mp": cost=750;name="M1014";break;
    case "m4_mp": cost=800;name="M4";break;
    case "rpd_mp": cost=1000;name="Rpd";break;
    case "30cal_mp": cost=1000;name="30Cal";break;
    case "ppsh_mp": cost = 1600;name="Ppsh";break;
    case "g36_mp": cost=700;name="G36";break;
    case "m14_mp": cost=2000;name="M14";break;
    case "hk417_mp": cost=1500;name="Hk417";break;
    case "tesla_mp": cost=1500;name="Tesla Gun";break;
    case "dp28_mp": cost=2000;name="Dp28";break;
    case "nade": cost=100;name="Grenade";break;
    default: cost=0;name="";break;
    }
    return name;
    }

    weapon()
    {
    w=self.script_noteworthy;
    switch(w)
    {
    case "chainsaw_mp": cost=100;name="Chainsaw";break;
    case "crowbar_mp": cost=50;name="Crowbar";break;
    case "colt_mp": cost=50;name="Colt";break;
    case "mp40_mp": cost=100;name="Mp40";break;
    case "thompson_mp": cost=150;name="Thompson";break;
    case "mp44_mp": cost=150;name="Mp44";break;
    case "mp5_mp": cost=150;name="Mp5";break;
    case "p90_mp": cost=150;name="P90";break;
    case "kar98k_mp": cost=150;name="Kar98k";break;
    case "ak47_mp": cost=150;name="Ak47";break;
    case "sten_mp": cost=150;name="Sten";break;
    case "pps42_mp": cost=150;name="Pps42";break;
    case "g43_mp": cost=100;name="G43";break;
    case "m1garand_mp": cost=100;name="M1garand";break;
    case "m1carbine_mp": cost=150;name="M1carbine";break;
    case "ak74_mp": cost=150;name="Ak74";break;
    case "bren_mp": cost=150;name="Flametower";break;
    case "springfield_mp": cost=100;name="Springfield";break;
    case "kar98k_sniper_mp": cost=200;name="Kar98k Sniper";break;
    case "mg42_mp": cost=2000;name="Mg42";break;
    case "wunderwaffe_mp": cost=15000;name="Wunderwaffe";break;
    case "m249_mp": cost=1000;name="M249";break;
    case "shotgun_mp": cost=350;name="Shotgun";break;
    case "raygun_mp": cost=2500;name="Raygun";break;
    case "m1014_mp": cost=750;name="M1014";break;
    case "m4_mp": cost=800;name="M4";break;
    case "rpd_mp": cost=1000;name="Rpd";break;
    case "30cal_mp": cost=1000;name="30Cal";break;
    case "ppsh_mp": cost = 1600;name="Ppsh";break;
    case "g36_mp": cost=700;name="G36";break;
    case "m14_mp": cost=2000;name="M14";break;
    case "hk417_mp": cost=1500;name="Hk417";break;
    case "tesla_mp": cost=1500;name="Tesla Gun";break;
    case "dp28_mp": cost=2000;name="Dp28";break;
    case "nade": cost=100;name="Gránát";break;
    default: cost=0;name="";break;
    }

  10. #7
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    switch(weapon) instead of switch(w) maybe? Seriosly, i cant believe you could't fix it yourself, you proably didn't even tried, i mean come on...
    sudo apt-get rekt

  11. #8
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Maybe you should ask the author of this code about errors?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •