Szerző Téma: Szkript hiba  (Megtekintve 836 alkalommal)

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Szkript hiba
« Dátum: 2011. szeptember 10. - 10:41:01 »
0 Show voters
Sziasztok. Valaki kitudná javítani ezt: [pawn]public OnPlayerRequestClass(playerid, classid)
    if(classid == 0 || classid == 1 || classid == 2) // E: stunter1/2 = egy szám, hogy hányadik helyen áll a skin amikor beraktad, például 0,1,2 stb...
{
    GameTextForPlayer(playerid, \"~g~Stunter\", 5000, 1);
SetPlayerPos(playerid, 1669.0923,-1676.3086,21.4357);
SetPlayerFacingAngle(playerid, 189.9247);
SetPlayerCameraPos(playerid, 1669.8665,-1679.0420,21.4360);
SetPlayerCameraLookAt(playerid, 1669.0923,-1676.3086,21.4357);
    TextDrawShowForPlayer(playerid, CBox);
    TextDrawShowForPlayer(playerid, CBox2);
    TextDrawShowForPlayer(playerid, InfoC);
    TextDrawShowForPlayer(playerid, SkinC);
ApplyAnimation(playerid,\"DANCING\",\"DAN_LOOP_A\",4.0,1,0,0,0,-1);
}
if(classid == 3 || classid == 4 || classid == 5) //
{
    GameTextForPlayer(playerid, \"~r~Drifter\", 5000, 1);
SetPlayerPos(playerid, -263.2422,2226.7073,110.4609);
SetPlayerFacingAngle(playerid, 279.4366);
SetPlayerCameraPos(playerid, -259.3647,2227.1392,110.0852);
SetPlayerCameraLookAt(playerid, -263.2422,2226.7073,110.4609);
     ApplyAnimation(playerid,\"DANCING\",\"DAN_LOOP_A\",4.0,1,0,0,0,-1);
}
if(classid == 6 || classid == 7 || classid == 8) //
{
GameTextForPlayer(playerid, \"~y~Jumper\", 5000, 1);
SetPlayerPos(playerid, -464.6849,2224.1455,1108.9216);
SetPlayerFacingAngle(playerid, 267.0313);
SetPlayerCameraPos(playerid, -456.8397,2224.1357,1105.3457);
SetPlayerCameraLookAt(playerid, -464.6849,2224.1455,1108.9216);
     ApplyAnimation(playerid,\"DANCING\",\"DAN_LOOP_A\",4.0,1,0,0,0,-1);
}
    if(classid == 9 || classid == 10 || classid == 11) //
{
GameTextForPlayer(playerid, \"~p~Csajok\", 5000, 1);
SetPlayerPos(playerid, -1658.2007,1218.2784,7.2500);
SetPlayerFacingAngle(playerid, 267.0313);
SetPlayerCameraPos(playerid, -1654.2991,1217.4213,7.2500);
SetPlayerCameraLookAt(playerid, -1658.2007,1218.2784,7.2500);
    ApplyAnimation(playerid,\"DANCING\",\"DNCE_M_C\",4.0,1,0,0,0,-1);
    iSpawnSet[playerid] = 13;
SetupPlayerForClassSelection(playerid);
PlayerPlaySound( playerid, 1183, 0.0, 0.0, 0.0 );//KEzdõdik a zene
    return 1;
}
[/pawn] Elõre is köszönöm :)

Koncz_Norbert

  • Vendég
Szkript hiba
« Válasz #1 Dátum: 2011. szeptember 10. - 10:50:47 »
+1 Show voters

public OnPlayerRequestClass( playerid, classid )
{
if( classid == 0 || classid == 1 || classid == 2 )
{
GameTextForPlayer( playerid, \"~g~Stunter\", 5000, 1 );
SetPlayerPos( playerid, 1669.0923, -1676.3086, 21.4357 );
SetPlayerFacingAngle( playerid, 189.9247 );
SetPlayerCameraPos( playerid, 1669.8665, -1679.0420, 21.4360 );
SetPlayerCameraLookAt( playerid, 1669.0923, -1676.3086, 21.4357 );
TextDrawShowForPlayer( playerid, CBox );
TextDrawShowForPlayer( playerid, CBox2 );
TextDrawShowForPlayer( playerid, InfoC );
TextDrawShowForPlayer( playerid, SkinC );
ApplyAnimation( playerid, \"DANCING\", \"DAN_LOOP_A\" ,4.0, 1, 0, 0, 0, -1 );
}
if( classid == 3 || classid == 4 || classid == 5 )
{
GameTextForPlayer( playerid, \"~r~Drifter\", 5000, 1 );
SetPlayerPos( playerid, -263.2422, 2226.7073, 110.4609 );
SetPlayerFacingAngle( playerid, 279.4366 );
SetPlayerCameraPos( playerid, -259.3647, 2227.1392, 110.0852 );
SetPlayerCameraLookAt( playerid, -263.2422, 2226.7073, 110.4609 );
    ApplyAnimation( playerid,\"DANCING\", \"DAN_LOOP_A\", 4.0, 1, 0, 0, 0, -1 );
}
if( classid == 6 || classid == 7 || classid == 8 )
{
GameTextForPlayer( playerid, \"~y~Jumper\", 5000, 1 );
SetPlayerPos( playerid, -464.6849, 2224.1455, 1108.9216 );
SetPlayerFacingAngle( playerid, 267.0313 );
SetPlayerCameraPos( playerid, -456.8397, 2224.1357, 1105.3457 );
SetPlayerCameraLookAt( playerid, -464.6849, 2224.1455, 1108.9216 );
    ApplyAnimation( playerid, \"DANCING\", \"DAN_LOOP_A\", 4.0, 1, 0, 0, 0, -1 );
}
if( classid == 9 || classid == 10 || classid == 11 )
{
GameTextForPlayer( playerid, \"~p~Csajok\", 5000, 1 );
SetPlayerPos( playerid, -1658.2007, 1218.2784, 7.2500 );
SetPlayerFacingAngle( playerid, 267.0313 );
SetPlayerCameraPos( playerid, -1654.2991, 1217.4213, 7.2500 );
SetPlayerCameraLookAt( playerid, -1658.2007, 1218.2784, 7.2500 );
   ApplyAnimation( playerid, \"DANCING\", \"DNCE_M_C\", 4.0, 1, 0, 0, 0, -1 );
iSpawnSet[ playerid ] = 13;
SetupPlayerForClassSelection( playerid );
PlayerPlaySound( playerid, 1183, 0.0, 0.0, 0.0 );
}
return 1;
}

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Szkript hiba
« Válasz #2 Dátum: 2011. szeptember 10. - 12:04:56 »
0 Show voters
De..De...Én is így csináltam  ??? ....Kösz szépen jó lett   8) Oda 1 pont

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal