PDA

View Full Version : Meaning



Mariusz
18th October 2017, 13:57
What does it mean?

******* script compile error *******
bad syntax: (file 'scripts/bonuses.gsc', line 297)
AllClientsPrint("Lost " + );
*
************************************

Whiskas
18th October 2017, 14:28
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()

Mariusz
18th October 2017, 18:36
Thanks. Next

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

Mariusz
3rd November 2017, 17:41
This again. Please...

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

kung foo man
3rd November 2017, 17:54
Post the full source of the function, otherwise it makes no sense

Mariusz
3rd November 2017, 18:13
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;
}

voron00
3rd November 2017, 21:03
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...

Lonsofore
4th November 2017, 12:39
Maybe you should ask the author of this code about errors?