class selection help
#1

i make a map here for my class selection why it is not working.......
Reply
#2

pawn Код:
//on top of script
new Object1;
new Object2;


public OnPlayerRequestClass(playerid, classid)
{
  Object1 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ); // add your object liek this!
  Object2 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
  return 1;
}

public OnPlayerSpawn(playerid)
{
  DestroyPlayerObject(playerid, Object1);
  DestroyPlayerObject(playerid, Object2);
  return 1;
}
it should work fine!
Reply
#3

why this
pawn Код:
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36017) : warning 204: symbol is assigned a value that is never used: "Object1"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36026) : warning 204: symbol is assigned a value that is never used: "Object10"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36027) : warning 204: symbol is assigned a value that is never used: "Object11"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36028) : warning 204: symbol is assigned a value that is never used: "Object12"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36029) : warning 204: symbol is assigned a value that is never used: "Object13"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36030) : warning 204: symbol is assigned a value that is never used: "Object14"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36031) : warning 204: symbol is assigned a value that is never used: "Object15"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36032) : warning 204: symbol is assigned a value that is never used: "Object16"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36033) : warning 204: symbol is assigned a value that is never used: "Object17"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36034) : warning 204: symbol is assigned a value that is never used: "Object18"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36035) : warning 204: symbol is assigned a value that is never used: "Object19"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36018) : warning 204: symbol is assigned a value that is never used: "Object2"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36036) : warning 204: symbol is assigned a value that is never used: "Object20"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36037) : warning 204: symbol is assigned a value that is never used: "Object21"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36038) : warning 204: symbol is assigned a value that is never used: "Object22"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36039) : warning 204: symbol is assigned a value that is never used: "Object23"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36040) : warning 204: symbol is assigned a value that is never used: "Object24"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36041) : warning 204: symbol is assigned a value that is never used: "Object25"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36042) : warning 204: symbol is assigned a value that is never used: "Object26"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36043) : warning 204: symbol is assigned a value that is never used: "Object27"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36044) : warning 204: symbol is assigned a value that is never used: "Object28"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36019) : warning 204: symbol is assigned a value that is never used: "Object3"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36020) : warning 204: symbol is assigned a value that is never used: "Object4"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36021) : warning 204: symbol is assigned a value that is never used: "Object5"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36022) : warning 204: symbol is assigned a value that is never used: "Object6"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36023) : warning 204: symbol is assigned a value that is never used: "Object7"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36024) : warning 204: symbol is assigned a value that is never used: "Object8"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36025) : warning 204: symbol is assigned a value that is never used: "Object9"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


28 Warnings.
Reply
#4

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
why this
pawn Код:
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36017) : warning 204: symbol is assigned a value that is never used: "Object1"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36026) : warning 204: symbol is assigned a value that is never used: "Object10"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36027) : warning 204: symbol is assigned a value that is never used: "Object11"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36028) : warning 204: symbol is assigned a value that is never used: "Object12"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36029) : warning 204: symbol is assigned a value that is never used: "Object13"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36030) : warning 204: symbol is assigned a value that is never used: "Object14"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36031) : warning 204: symbol is assigned a value that is never used: "Object15"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36032) : warning 204: symbol is assigned a value that is never used: "Object16"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36033) : warning 204: symbol is assigned a value that is never used: "Object17"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36034) : warning 204: symbol is assigned a value that is never used: "Object18"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36035) : warning 204: symbol is assigned a value that is never used: "Object19"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36018) : warning 204: symbol is assigned a value that is never used: "Object2"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36036) : warning 204: symbol is assigned a value that is never used: "Object20"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36037) : warning 204: symbol is assigned a value that is never used: "Object21"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36038) : warning 204: symbol is assigned a value that is never used: "Object22"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36039) : warning 204: symbol is assigned a value that is never used: "Object23"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36040) : warning 204: symbol is assigned a value that is never used: "Object24"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36041) : warning 204: symbol is assigned a value that is never used: "Object25"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36042) : warning 204: symbol is assigned a value that is never used: "Object26"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36043) : warning 204: symbol is assigned a value that is never used: "Object27"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36044) : warning 204: symbol is assigned a value that is never used: "Object28"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36019) : warning 204: symbol is assigned a value that is never used: "Object3"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36020) : warning 204: symbol is assigned a value that is never used: "Object4"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36021) : warning 204: symbol is assigned a value that is never used: "Object5"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36022) : warning 204: symbol is assigned a value that is never used: "Object6"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36023) : warning 204: symbol is assigned a value that is never used: "Object7"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36024) : warning 204: symbol is assigned a value that is never used: "Object8"
F:\Program Files\RBCluBxB v6.5\Gamemodes\SATDM_1.pwn(36025) : warning 204: symbol is assigned a value that is never used: "Object9"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


28 Warnings.
you sure uadded everything in the right place?
Reply
#5

i forget to add destory codes thanks for the help +rep
Reply
#6

but one thing upto now its not working
Reply
#7

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
i forget to add destory codes thanks for the help +rep
Have Fun! and thnks...
Reply
#8

check my new post
Reply
#9

Quote:
Originally Posted by ScripteRNaBEEL
Посмотреть сообщение
but one thing upto now its not working
Hmmm u using streamer?
if not see this :
If not : onplayerrequestcclass use object1 = createobject(...);
If yes use : CreateDynamicObject(..);
try this ok?
Reply
#10

check this im using like this
Quote:

Object1 = CreateDynamicObject(11556,4387.3999000,-2181.6001000,0.0000000,0.0000000,0.0000000,0.00000 00); //object(des_adrocks) (1)
Object2 = CreateDynamicObject(11556,4363.1001000,-2129.8999000,0.0000000,0.0000000,0.0000000,192.000 0000); //object(des_adrocks) (2)
Object3 = CreateDynamicObject(16111,4355.6001000,-2152.1001000,-4.6000000,0.0000000,0.0000000,86.0000000); //object(des_rockgp1_02) (1)
Object4 = CreateDynamicObject(16111,4396.1001000,-2155.8999000,-4.5000000,0.0000000,0.0000000,235.9950000); //object(des_rockgp1_02) (2)
Object5 = CreateDynamicObject(16115,4348.6001000,-2130.6001000,15.1000000,0.0000000,0.0000000,0.0000 000); //object(des_rockgp1_03) (1)
Object6 = CreateDynamicObject(16120,4338.7002000,-2155.6001000,0.0000000,0.0000000,0.0000000,342.000 0000); //object(des_rockgp2_07) (1)
Object7 = CreateDynamicObject(16120,4411.7998000,-2144.1001000,0.0000000,0.0000000,0.0000000,164.000 0000); //object(des_rockgp2_07) (2)
Object8 = CreateDynamicObject(2780,4380.2998000,-2163.8000000,4.8000000,0.0000000,0.0000000,0.00000 00); //object(cj_smoke_mach) (1)
Object9 = CreateDynamicObject(3267,4375.2002000,-2172.0000000,7.9000000,0.0000000,0.0000000,0.00000 00); //object(mil_samsite) (1)
Object10 = CreateDynamicObject(3267,4382.1001000,-2171.8999000,7.9000000,0.0000000,0.0000000,0.00000 00); //object(mil_samsite) (2)
Object11 = CreateDynamicObject(3524,4373.2002000,-2164.5000000,10.6000000,0.0000000,0.0000000,0.0000 000); //object(skullpillar01_lvs) (5)
Object12 = CreateDynamicObject(3524,4386.5000000,-2160.6001000,10.7000000,0.0000000,0.0000000,0.0000 000); //object(skullpillar01_lvs) (6)
Object13 = CreateDynamicObject(3515,4376.2002000,-2146.2000000,8.3000000,0.0000000,0.0000000,0.00000 00); //object(vgsfountain) (1)
Object14 = CreateDynamicObject(3461,4373.6001000,-2164.3999000,9.3000000,0.0000000,0.0000000,0.00000 00); //object(tikitorch01_lvs) (1)
Object15 = CreateDynamicObject(3461,4372.8999000,-2164.6001000,9.3000000,0.0000000,0.0000000,0.00000 00); //object(tikitorch01_lvs) (2)
Object16 = CreateDynamicObject(3461,4386.8999000,-2160.6001000,9.4000000,0.0000000,0.0000000,0.00000 00); //object(tikitorch01_lvs) (3)
Object17 = CreateDynamicObject(3461,4386.2002000,-2160.8000000,9.4000000,0.0000000,0.0000000,0.00000 00); //object(tikitorch01_lvs) (4)
Object18 = CreateDynamicObject(3472,4372.0000000,-2164.8000000,7.8000000,0.0000000,0.0000000,0.00000 00); //object(circuslampost03) (9)
Object19 = CreateDynamicObject(3472,4387.6001000,-2160.3000000,7.9000000,0.0000000,0.0000000,0.00000 00); //object(circuslampost03) (10)
Object20 = CreateDynamicObject(7916,4359.2002000,-2135.8000000,18.1000000,0.0000000,0.0000000,0.0000 000); //object(vegaswaterfall02) (1)
Object21 = CreateDynamicObject(7916,4360.3999000,-2140.8999000,16.9000000,0.0000000,0.0000000,0.0000 000); //object(vegaswaterfall02) (2)
Object22 = CreateDynamicObject(7916,4363.1001000,-2138.5000000,17.4000000,0.0000000,0.0000000,0.0000 000); //object(vegaswaterfall02) (3)
Object23 = CreateDynamicObject(16115,4369.2002000,-2123.3000000,13.3000000,0.0000000,0.0000000,0.0000 000); //object(des_rockgp1_03) (3)
Object24 = CreateDynamicObject(11556,4382.0000000,-2200.1001000,0.0000000,0.0000000,0.0000000,0.00000 00); //object(des_adrocks) (3)
Object25 = CreateDynamicObject(9833,4381.6001000,-2164.1001000,11.1000000,0.0000000,0.0000000,0.0000 000); //object(fountain_sfw) (11)
Object26 = CreateDynamicObject(9833,4376.6001000,-2164.3000000,10.6000000,0.0000000,0.0000000,0.0000 000); //object(fountain_sfw) (12)
Object27 = CreateDynamicObject(14608,4370.7002000,-2148.7000000,9.0000000,0.0000000,0.0000000,156.000 0000); //object(triad_buddha01) (1)
Object28 = CreateDynamicObject(13667,4383.3999000,-2147.8000000,15.4000000,0.0000000,0.0000000,264.00 00000); //object(monkeyman) (1)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)