[4 Warnings.] Please help me
#1

Error:
Код:
C:\Documents and Settings\Kerim\Belgelerim\samp\gamemodes\Arena1337.pwn(105) : warning 217: loose indentation
C:\Documents and Settings\Kerim\Belgelerim\samp\gamemodes\Arena1337.pwn(164) : warning 217: loose indentation
C:\Documents and Settings\Kerim\Belgelerim\samp\gamemodes\Arena1337.pwn(215) : warning 209: function "OnPlayerCommandText" should return a value
C:\Documents and Settings\Kerim\Belgelerim\samp\gamemodes\Arena1337.pwn(216) : warning 203: symbol is never used: "gRandomPlayerSpawns"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Script:
http://pastebin.com/m4c178a6d

Thanks
Reply
#2

216 Nolu Hata: gRandomPlayerSpawns Her hangi bir yerde kullanılmıyor diyor public vs vs
Reply
#3

Quote:
Originally Posted by bkart
216 Nolu Hata: gRandomPlayerSpawns Her hangi bir yerde kullanılmıyor diyor public vs vs
What?
Reply
#4

Indent the code, and add do on commandtext like this:


Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 if (strcmp("/geber", cmdtext, true, 10) == 0)
 {
  SetPlayerHealth(playerid,0);
    return 1;
 }
return 0;
}
for the 4th warning, you didn't use the command anywhere.
Reply
#5

repalce

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 if (strcmp("/geber", cmdtext, true, 10) == 0)
 {
  SetPlayerHealth(playerid,0);
    return 1;
 }
}
with

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/geber", cmdtext, true, 10) == 0)
  {
    SetPlayerHealth(playerid,0);
    return 1;
  }
  return 0;
}
and replace

Код:
public OnGameModeInit()
{
    // OOOooooooOoOOoOoOoOoOOOOOOoOOOoo
    SetGameModeText("Lynax!");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //----------Objeler----------//
    CreateObject(4100, 96.655403137207, 1921.0096435547, 18.872072219849, 0, 0, 49.850006103516);
  CreateObject(4100, 96.6552734375, 1921.0087890625, 21.372072219849, 0, 0, 49.844970703125);
  CreateObject(2927, 215.84049987793, 1875.7525634766, 14.813990592957, 0, 0, 0);
  CreateObject(2927, 211.80381774902, 1875.736328125, 14.813990592957, 0, 0, 0);
  CreateObject(2918, 225.60563659668, 1885.3742675781, 18.529756546021, 0, 0, 0);
  CreateObject(18257, 198.07888793945, 1915.3161621094, 16.640625, 0, 0, 270.31530761719);
  CreateObject(3073, 120.94235229492, 1850.5257568359, 18.349506378174, 0, 0, 120.72055053711);
  CreateObject(3092, 120.16432952881, 1867.7508544922, 17.800539016724, 0, 0, 168.63024902344);
  CreateObject(952, 123.71527862549, 1839.7387695313, 17.982130050659, 0, 0, 288.22521972656);
  CreateObject(3461, 125.05590820313, 1839.9108886719, 16.046304702759, 0, 0, 0);
  CreateObject(2934, 139.72605895996, 1865.6354980469, 18.224164962769, 0, 0, 300.18017578125);
  CreateObject(12932, 264.77648925781, 1843.3016357422, 19.981256484985, 0, 0, 0);
  CreateObject(16093, 133.46467590332, 1850.7478027344, 20.975994110107, 0, 0, 0);
  CreateObject(993, 137.85064697266, 1826.7884521484, 18.26184463501, 0, 0, 270.27026367188);
  CreateObject(993, 137.96714782715, 1816.7530517578, 18.26184463501, 0, 0, 271.01916503906);
  CreateObject(993, 138.09696960449, 1802.8195800781, 18.26184463501, 0, 0, 304.14721679688);
  CreateObject(14447, 138.34683227539, 1836.2453613281, 21.046234130859, 0, 0, 0);
  CreateObject(952, 128.32586669922, 1840.7124023438, 17.982130050659, 0, 0, 258.31079101563);
  CreateObject(16096, 148.98600769043, 1828.7642822266, 18.556888580322, 0, 0, 90.464996337891);
  CreateObject(16287, 104.18348693848, 1866.025390625, 16.764486312866, 0, 0, 19.940002441406);
  CreateObject(16770, 125.63363647461, 1875.9643554688, 18.379833221436, 0, 0, 269.19006347656);
  CreateObject(2064, 112.27751159668, 1837.28515625, 17.269845962524, 0, 0, 129.61004638672);
  CreateObject(2064, 113.74642181396, 1835.5811767578, 17.269845962524, 0, 0, 141.515625);
  CreateObject(2064, 116.16197967529, 1834.6931152344, 17.269845962524, 0, 0, 153.4248046875);
  CreateObject(2237, 128.04437255859, 1835.9860839844, 17.739725112915, 0, 0, 0);
  CreateObject(6295, 163.40046691895, 1839.1317138672, 40.573013305664, 0, 0, 0);
  CreateObject(2908, 117.92443847656, 1867.3283691406, 16.909837722778, 0, 0, 0);
  CreateObject(2907, 117.3050994873, 1866.4022216797, 16.984085083008, 0, 0, 0);
  CreateObject(2906, 118.21438598633, 1866.5218505859, 16.899143218994, 0, 0, 308.16516113281);
  CreateObject(2890, 106.72409057617, 1846.4942626953, 16.640625, 0, 0, 350.0299987793);
  CreateObject(1372, 207.35275268555, 1923.0849609375, 16.774366378784, 0, 0, 0);
  CreateObject(3279, 201.43962097168, 1880.1069335938, 16.648057937622, 0, 0, 320.1201171875);
  CreateObject(3279, 202.03430175781, 1892.2843017578, 16.648057937622, 0, 0, 57.564208984375);
  CreateObject(3885, 137.73431396484, 1875.7042236328, 22.210094451904, 0, 0, 0);
  CreateObject(16641, 160.93409729004, 1822.1505126953, 18.395481109619, 0, 0, 0);
  CreateObject(11513, 58.661403656006, 1827.9272460938, 48.888328552246, 0, 0, 0);
  CreateObject(11513, 108.9571685791, 1775.1463623047, 48.888328552246, 0, 0, 63.789978027344);
  CreateObject(11513, 188.73582458496, 1776.8444824219, 48.888328552246, 0, 0, 63.78662109375);
CreateObject(11513, 264.69079589844, 1779.2165527344, 48.888328552246, 0, 0, 63.78662109375);
CreateObject(11513, 311.03671264648, 1822.8482666016, 48.888328552246, 0, 0, 123.60662841797);
CreateObject(11513, 314.06314086914, 1905.7756347656, 48.888328552246, 0, 0, 183.33178710938);
CreateObject(11513, 241.90243530273, 1959.7882080078, 48.888328552246, 0, 0, 225.10290527344);
CreateObject(11513, 149.02087402344, 1977.5950927734, 48.888328552246, 0, 0, 238.99383544922);
CreateObject(11513, 50.516906738281, 1905.1635742188, 48.888328552246, 0, 0, 298.81103515625);
CreateObject(11513, 119.42307281494, 1968.5515136719, 48.888328552246, 0, 0, 252.88598632813);
CreateObject(16613, 137.35063171387, 1990.8583984375, 66.46459197998, 0, 0, 240.3603515625);
CreateObject(16327, 174.03419494629, 1867.1280517578, 19.720956802368, 0, 0, 0);
CreateObject(16310, 237.42393493652, 1808.6822509766, 16.640625, 0, 0, 0);
CreateObject(16310, 237.4460144043, 1815.2706298828, 16.640625, 0, 0, 0);
CreateObject(10357, 264.93161010742, 1808.6929931641, 105.85214233398, 0, 0, 330.13513183594);
CreateObject(3887, 230.84170532227, 1881.7133789063, 25.509073257446, 0, 0, 340.06005859375);
CreateObject(3866, 141.00979614258, 1935.0281982422, 25.935052871704, 0, 0, 129.61004638672);
CreateObject(5837, 114.25238800049, 1895.0522460938, 19.15602684021, 0, 0, 209.36999511719);
CreateObject(5837, 123.12391662598, 1896.2766113281, 19.15602684021, 0, 0, 147.56134033203);
CreateObject(8131, 117.66971588135, 1907.0944824219, 28.386938095093, 0, 0, 0);
CreateObject(2614, 117.69480133057, 1905.7012939453, 28.134660720825, 0, 0, 0);
CreateObject(7092, 155.2890625, 1897.6339111328, 20.495672225952, 0, 0, 90.810546875);
CreateObject(3578, 187.46089172363, 1834.0307617188, 23.020221710205, 0, 0, 89.730041503906);
CreateObject(3578, 192.31266784668, 1838.8666992188, 23.020221710205, 0, 0, 359.04040527344);
CreateObject(3578, 200.62164306641, 1835.0163574219, 23.020221710205, 0, 0, 309.18872070313);
CreateObject(3578, 198.42306518555, 1830.5042724609, 23.020221710205, 0, 0, 189.54840087891);
CreateObject(3578, 198.4228515625, 1830.50390625, 23.995210647583, 0, 0, 189.54711914063);
CreateObject(3578, 200.62109375, 1835.015625, 23.995222091675, 0, 0, 309.18823242188);
CreateObject(3578, 187.4599609375, 1834.0302734375, 24.120227813721, 0, 0, 89.725341796875);
CreateObject(18257, 208.86340332031, 1917.8735351563, 16.640625, 0, 0, 49.892974853516);
CreateObject(3620, 203.78274536133, 1919.0347900391, 35.186103820801, 0, 0, 0);
CreateObject(10831, 175.71659851074, 1920.3537597656, 21.788505554199, 0, 0, 0);
CreateObject(16502, 183.15937805176, 1924.0496826172, 24.122011184692, 0, 0, 0);
CreateObject(1637, 182.54237365723, 1909.8405761719, 26.221885681152, 0, 11.910003662109, 1.9849853515625);
CreateObject(1380, 174.85299682617, 1867.3905029297, 42.57063293457, 0, 0, 0);
CreateObject(3116, 175.6157989502, 1906.5646972656, 23.503818511963, 0, 0, 0);
CreateObject(1379, 224.17266845703, 1909.7268066406, 13.511076927185, 0, 358.01501464844, 358.01501464844);
CreateObject(16088, 185.72633361816, 1819.3972167969, 11.890625, 0, 0, 0);
CreateObject(16088, 185.73448181152, 1805.908203125, 11.890625, 0, 0, 0);
CreateObject(14448, 209.54981994629, 1830.1087646484, 17.753353118896, 0, 0, 91.669952392578);
CreateObject(14448, 207.10388183594, 1816.1787109375, 17.753353118896, 0, 0, 1.9399108886719);
CreateObject(7981, 165.63456726074, 1807.3485107422, 21.638969421387, 0, 0, 17.864868164063);
CreateObject(8251, 250.0637512207, 1885.6556396484, 18.568439483643, 0, 0, 1.9849853515625);
CreateObject(1318, 269.29989624023, 1883.7470703125, 22.639101028442, 0, 0, 0);
CreateObject(16337, 277.38262939453, 1821.6047363281, 16.640625, 0, 0, 0);
CreateObject(16337, 276.69506835938, 1817.1063232422, 16.640625, 0, 0, 350.07507324219);
CreateObject(16337, 275.00369262695, 1812.6383056641, 16.640625, 0, 0, 342.13391113281);
CreateObject(16337, 272.92562866211, 1808.7012939453, 16.640625, 0, 0, 330.22082519531);
CreateObject(16337, 269.27670288086, 1804.8374023438, 16.640625, 0, 0, 318.30615234375);
CreateObject(8873, 124.56004333496, 1813.6595458984, 22.739978790283, 0, 0, 119.59494018555);
CreateObject(8873, 157.77236938477, 1831.8608398438, 22.739978790283, 0, 0, 338.93151855469);
CreateObject(3437, 99.340980529785, 1833.6785888672, 14.333662033081, 0, 0, 322.15002441406);
CreateObject(3437, 102.69578552246, 1831.4248046875, 17.808654785156, 0, 0, 322.14660644531);
CreateObject(3437, 105.75701904297, 1828.7435302734, 19.808654785156, 0, 0, 312.17663574219);
CreateObject(3437, 108.11694335938, 1826.1591796875, 16.058654785156, 0, 0, 306.22155761719);
CreateObject(3437, 110.7974395752, 1822.8529052734, 14.308654785156, 0, 0, 308.20141601563);
CreateObject(3437, 112.98840332031, 1820.453125, 12.883657455444, 0, 0, 304.2294921875);
CreateObject(3431, 137.96110534668, 1814.9282226563, 17.950202941895, 0, 0, 3.969970703125);
CreateObject(3108, 127.33264923096, 1826.0133056641, 16.640625, 0, 0, 0);
CreateObject(2772, 133.63565063477, 1843.5118408203, 19.269948959351, 0, 350.07501220703, 84.275024414063);
CreateObject(18047, 145.69415283203, 1841.0310058594, 21.238500595093, 0, 0, 0);
 
    return 1;
}
with

Код:
public OnGameModeInit()
{
    // OOOooooooOoOOoOoOoOoOOOOOOoOOOoo
    SetGameModeText("Lynax!");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    //----------Objeler----------//
    CreateObject(4100, 96.655403137207, 1921.0096435547, 18.872072219849, 0, 0, 49.850006103516);
    CreateObject(4100, 96.6552734375, 1921.0087890625, 21.372072219849, 0, 0, 49.844970703125);
    CreateObject(2927, 215.84049987793, 1875.7525634766, 14.813990592957, 0, 0, 0);
    CreateObject(2927, 211.80381774902, 1875.736328125, 14.813990592957, 0, 0, 0);
    CreateObject(2918, 225.60563659668, 1885.3742675781, 18.529756546021, 0, 0, 0);
    CreateObject(18257, 198.07888793945, 1915.3161621094, 16.640625, 0, 0, 270.31530761719);
    CreateObject(3073, 120.94235229492, 1850.5257568359, 18.349506378174, 0, 0, 120.72055053711);
    CreateObject(3092, 120.16432952881, 1867.7508544922, 17.800539016724, 0, 0, 168.63024902344);
    CreateObject(952, 123.71527862549, 1839.7387695313, 17.982130050659, 0, 0, 288.22521972656);
    CreateObject(3461, 125.05590820313, 1839.9108886719, 16.046304702759, 0, 0, 0);
    CreateObject(2934, 139.72605895996, 1865.6354980469, 18.224164962769, 0, 0, 300.18017578125);
    CreateObject(12932, 264.77648925781, 1843.3016357422, 19.981256484985, 0, 0, 0);
    CreateObject(16093, 133.46467590332, 1850.7478027344, 20.975994110107, 0, 0, 0);
    CreateObject(993, 137.85064697266, 1826.7884521484, 18.26184463501, 0, 0, 270.27026367188);
    CreateObject(993, 137.96714782715, 1816.7530517578, 18.26184463501, 0, 0, 271.01916503906);
    CreateObject(993, 138.09696960449, 1802.8195800781, 18.26184463501, 0, 0, 304.14721679688);
    CreateObject(14447, 138.34683227539, 1836.2453613281, 21.046234130859, 0, 0, 0);
    CreateObject(952, 128.32586669922, 1840.7124023438, 17.982130050659, 0, 0, 258.31079101563);
    CreateObject(16096, 148.98600769043, 1828.7642822266, 18.556888580322, 0, 0, 90.464996337891);
    CreateObject(16287, 104.18348693848, 1866.025390625, 16.764486312866, 0, 0, 19.940002441406);
    CreateObject(16770, 125.63363647461, 1875.9643554688, 18.379833221436, 0, 0, 269.19006347656);
    CreateObject(2064, 112.27751159668, 1837.28515625, 17.269845962524, 0, 0, 129.61004638672);
    CreateObject(2064, 113.74642181396, 1835.5811767578, 17.269845962524, 0, 0, 141.515625);
    CreateObject(2064, 116.16197967529, 1834.6931152344, 17.269845962524, 0, 0, 153.4248046875);
    CreateObject(2237, 128.04437255859, 1835.9860839844, 17.739725112915, 0, 0, 0);
    CreateObject(6295, 163.40046691895, 1839.1317138672, 40.573013305664, 0, 0, 0);
    CreateObject(2908, 117.92443847656, 1867.3283691406, 16.909837722778, 0, 0, 0);
    CreateObject(2907, 117.3050994873, 1866.4022216797, 16.984085083008, 0, 0, 0);
    CreateObject(2906, 118.21438598633, 1866.5218505859, 16.899143218994, 0, 0, 308.16516113281);
    CreateObject(2890, 106.72409057617, 1846.4942626953, 16.640625, 0, 0, 350.0299987793);
    CreateObject(1372, 207.35275268555, 1923.0849609375, 16.774366378784, 0, 0, 0);
    CreateObject(3279, 201.43962097168, 1880.1069335938, 16.648057937622, 0, 0, 320.1201171875);
    CreateObject(3279, 202.03430175781, 1892.2843017578, 16.648057937622, 0, 0, 57.564208984375);
    CreateObject(3885, 137.73431396484, 1875.7042236328, 22.210094451904, 0, 0, 0);
    CreateObject(16641, 160.93409729004, 1822.1505126953, 18.395481109619, 0, 0, 0);
    CreateObject(11513, 58.661403656006, 1827.9272460938, 48.888328552246, 0, 0, 0);
    CreateObject(11513, 108.9571685791, 1775.1463623047, 48.888328552246, 0, 0, 63.789978027344);
    CreateObject(11513, 188.73582458496, 1776.8444824219, 48.888328552246, 0, 0, 63.78662109375);
    CreateObject(11513, 264.69079589844, 1779.2165527344, 48.888328552246, 0, 0, 63.78662109375);
    CreateObject(11513, 311.03671264648, 1822.8482666016, 48.888328552246, 0, 0, 123.60662841797);
    CreateObject(11513, 314.06314086914, 1905.7756347656, 48.888328552246, 0, 0, 183.33178710938);
    CreateObject(11513, 241.90243530273, 1959.7882080078, 48.888328552246, 0, 0, 225.10290527344);
    CreateObject(11513, 149.02087402344, 1977.5950927734, 48.888328552246, 0, 0, 238.99383544922);
    CreateObject(11513, 50.516906738281, 1905.1635742188, 48.888328552246, 0, 0, 298.81103515625);
    CreateObject(11513, 119.42307281494, 1968.5515136719, 48.888328552246, 0, 0, 252.88598632813);
    CreateObject(16613, 137.35063171387, 1990.8583984375, 66.46459197998, 0, 0, 240.3603515625);
    CreateObject(16327, 174.03419494629, 1867.1280517578, 19.720956802368, 0, 0, 0);
    CreateObject(16310, 237.42393493652, 1808.6822509766, 16.640625, 0, 0, 0);
    CreateObject(16310, 237.4460144043, 1815.2706298828, 16.640625, 0, 0, 0);
    CreateObject(10357, 264.93161010742, 1808.6929931641, 105.85214233398, 0, 0, 330.13513183594);
    CreateObject(3887, 230.84170532227, 1881.7133789063, 25.509073257446, 0, 0, 340.06005859375);
    CreateObject(3866, 141.00979614258, 1935.0281982422, 25.935052871704, 0, 0, 129.61004638672);
    CreateObject(5837, 114.25238800049, 1895.0522460938, 19.15602684021, 0, 0, 209.36999511719);
    CreateObject(5837, 123.12391662598, 1896.2766113281, 19.15602684021, 0, 0, 147.56134033203);
    CreateObject(8131, 117.66971588135, 1907.0944824219, 28.386938095093, 0, 0, 0);
    CreateObject(2614, 117.69480133057, 1905.7012939453, 28.134660720825, 0, 0, 0);
    CreateObject(7092, 155.2890625, 1897.6339111328, 20.495672225952, 0, 0, 90.810546875);
    CreateObject(3578, 187.46089172363, 1834.0307617188, 23.020221710205, 0, 0, 89.730041503906);
    CreateObject(3578, 192.31266784668, 1838.8666992188, 23.020221710205, 0, 0, 359.04040527344);
    CreateObject(3578, 200.62164306641, 1835.0163574219, 23.020221710205, 0, 0, 309.18872070313);
    CreateObject(3578, 198.42306518555, 1830.5042724609, 23.020221710205, 0, 0, 189.54840087891);
    CreateObject(3578, 198.4228515625, 1830.50390625, 23.995210647583, 0, 0, 189.54711914063);
    CreateObject(3578, 200.62109375, 1835.015625, 23.995222091675, 0, 0, 309.18823242188);
    CreateObject(3578, 187.4599609375, 1834.0302734375, 24.120227813721, 0, 0, 89.725341796875);
    CreateObject(18257, 208.86340332031, 1917.8735351563, 16.640625, 0, 0, 49.892974853516);
    CreateObject(3620, 203.78274536133, 1919.0347900391, 35.186103820801, 0, 0, 0);
    CreateObject(10831, 175.71659851074, 1920.3537597656, 21.788505554199, 0, 0, 0);
    CreateObject(16502, 183.15937805176, 1924.0496826172, 24.122011184692, 0, 0, 0);
    CreateObject(1637, 182.54237365723, 1909.8405761719, 26.221885681152, 0, 11.910003662109, 1.9849853515625);
    CreateObject(1380, 174.85299682617, 1867.3905029297, 42.57063293457, 0, 0, 0);
    CreateObject(3116, 175.6157989502, 1906.5646972656, 23.503818511963, 0, 0, 0);
    CreateObject(1379, 224.17266845703, 1909.7268066406, 13.511076927185, 0, 358.01501464844, 358.01501464844);
    CreateObject(16088, 185.72633361816, 1819.3972167969, 11.890625, 0, 0, 0);
    CreateObject(16088, 185.73448181152, 1805.908203125, 11.890625, 0, 0, 0);
    CreateObject(14448, 209.54981994629, 1830.1087646484, 17.753353118896, 0, 0, 91.669952392578);
    CreateObject(14448, 207.10388183594, 1816.1787109375, 17.753353118896, 0, 0, 1.9399108886719);
    CreateObject(7981, 165.63456726074, 1807.3485107422, 21.638969421387, 0, 0, 17.864868164063);
    CreateObject(8251, 250.0637512207, 1885.6556396484, 18.568439483643, 0, 0, 1.9849853515625);
    CreateObject(1318, 269.29989624023, 1883.7470703125, 22.639101028442, 0, 0, 0);
    CreateObject(16337, 277.38262939453, 1821.6047363281, 16.640625, 0, 0, 0);
    CreateObject(16337, 276.69506835938, 1817.1063232422, 16.640625, 0, 0, 350.07507324219);
    CreateObject(16337, 275.00369262695, 1812.6383056641, 16.640625, 0, 0, 342.13391113281);
    CreateObject(16337, 272.92562866211, 1808.7012939453, 16.640625, 0, 0, 330.22082519531);
    CreateObject(16337, 269.27670288086, 1804.8374023438, 16.640625, 0, 0, 318.30615234375);
    CreateObject(8873, 124.56004333496, 1813.6595458984, 22.739978790283, 0, 0, 119.59494018555);
    CreateObject(8873, 157.77236938477, 1831.8608398438, 22.739978790283, 0, 0, 338.93151855469);
    CreateObject(3437, 99.340980529785, 1833.6785888672, 14.333662033081, 0, 0, 322.15002441406);
    CreateObject(3437, 102.69578552246, 1831.4248046875, 17.808654785156, 0, 0, 322.14660644531);
    CreateObject(3437, 105.75701904297, 1828.7435302734, 19.808654785156, 0, 0, 312.17663574219);
    CreateObject(3437, 108.11694335938, 1826.1591796875, 16.058654785156, 0, 0, 306.22155761719);
    CreateObject(3437, 110.7974395752, 1822.8529052734, 14.308654785156, 0, 0, 308.20141601563);
    CreateObject(3437, 112.98840332031, 1820.453125, 12.883657455444, 0, 0, 304.2294921875);
    CreateObject(3431, 137.96110534668, 1814.9282226563, 17.950202941895, 0, 0, 3.969970703125);
    CreateObject(3108, 127.33264923096, 1826.0133056641, 16.640625, 0, 0, 0);
    CreateObject(2772, 133.63565063477, 1843.5118408203, 19.269948959351, 0, 350.07501220703, 84.275024414063);
    CreateObject(18047, 145.69415283203, 1841.0310058594, 21.238500595093, 0, 0, 0);
 
    return 1;
}
Reply
#6

At the top of his GM:
pawn Код:
#pragma tabsize 0 //remove loose indentation
Change your cmd to:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/geber", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,0);
    return 1;
    }
    return 0;
}
About gRandomPlayerSpawns. Use it on something. You created it, and you it is not using it
Reply
#7

Quote:
Originally Posted by TheNooB
At the top of his GM:
pawn Код:
#pragma tabsize 0 //remove loose indentation
Change your cmd to:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/geber", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid,0);
    return 1;
    }
    return 0;
}
About gRandomPlayerSpawns. Use it on something. You created it, and you it is not using it
The code won't work u missed a bracket, why did u post the 3rd time anyway if there's two answers above?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)