26.10.2011, 14:21
Hello all i have a serious/fatal problem to my script please help me
well when i enter to game my commands are not valid D: and it is compiling very well.
But its only today.Is it because i added more textdraws?check the code of RequestClass:
CAUTION:This happened after i add the textdraws i am not sure if the textdraws are the problem please help me
**The commands are right i am 100000% sure
Regards,
Blacklisted_Bboy
well when i enter to game my commands are not valid D: and it is compiling very well.
But its only today.Is it because i added more textdraws?check the code of RequestClass:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass(playerid, classid);
TextDrawHideForPlayer(playerid, welcome);
switch (classid) {
case 0,1,2,3,4:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
ApplyAnimation(playerid, "GHANDS", "gsignLH", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
TextDrawShowForPlayer(playerid, nb1);
TextDrawShowForPlayer(playerid, nb2);
TextDrawShowForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
SetPlayerTime(playerid, 0,0);
}
case 5,6,7:
{
SetPlayerPos(playerid,1179.5946,-1323.0275,14.1772);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos( playerid, 1185.4344, -1323.5922, 14.7824 );
SetPlayerCameraLookAt( playerid, 1175.4892, -1322.5469, 12.8744 );
ApplyAnimation(playerid, "DANCING", "dance_loop", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~medics~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 8,9:
{
SetPlayerPos(playerid,2141.4111,-1822.7399,18.8690);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos( playerid, 2142.1755, -1816.8947, 19.4689 );
SetPlayerCameraLookAt( playerid, 2141.8266, -1826.8886, 17.5608);
ApplyAnimation(playerid, "FIGHT_E", "FightKick_B", 4.0, 1, 0, 0, 0, 0);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~boxers~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 10,11,12,13,14,15,16,17,18,19:
{
SetPlayerPos(playerid,1594.7111,-1201.0778,19.8088);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos( playerid, 1591.8665, -1203.0065, 20.4015 );
SetPlayerCameraLookAt( playerid, 1599.7467, -1196.8499, 18.4935 );
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawShowForPlayer(playerid, hobos1);
TextDrawShowForPlayer(playerid, hobos2);
TextDrawShowForPlayer(playerid, hobos3);
TextDrawShowForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
}
case 20,21,22,23,24,25,26,27,28,29,30,31:
{
SetPlayerPos(playerid,1960.0389,-1198.6134,27.1859);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos( playerid, 1963.3820, -1200.0648, 27.7859 );
SetPlayerCameraLookAt( playerid, 1954.1770, -1196.1574, 25.8778 );
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawShowForPlayer(playerid, richfags1);
TextDrawShowForPlayer(playerid, richfags2);
TextDrawShowForPlayer(playerid, richfags3);
ApplyAnimation(playerid, "GANGS", "Invite_Yes", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~richfags~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 32,33,34,35,36,37,38,39,40,41,42,43,44,45:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
ApplyAnimation(playerid, "GHANDS", "gsign1", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~public services~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 46,47,48,49,50,51:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
ApplyAnimation(playerid, "JST_BUISNESS", "girl_01", 4.0, 1, 0, 0, 0, 0);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawShowForPlayer(playerid, girl1);
TextDrawShowForPlayer(playerid, girl2);
TextDrawShowForPlayer(playerid, girl3);
TextDrawShowForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
}
case 52,53,54:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
ApplyAnimation(playerid, "POLICE", "Door_Kick", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~ballas~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
}
case 55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
ApplyAnimation(playerid, "RAPPING", "RAP_A_IN", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~terrorists~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 81,82,83,84,85:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
ApplyAnimation(playerid, "RAPPING", "RAP_A_IN", 1.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~specials~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
case 86,87,88,89,90,91,92,93:
{
SetPlayerPos(playerid,3935.8965,-1096.5420,3.2836);
SetPlayerFacingAngle(playerid, 166.8000);
SetPlayerCameraPos(playerid,3934.8000,-1101.0745,3.6500);
SetPlayerCameraLookAt(playerid,3935.2124,-1097.0251,3.6500);
TextDrawHideForPlayer(playerid, girl1);
TextDrawHideForPlayer(playerid, girl2);
TextDrawHideForPlayer(playerid, girl3);
TextDrawHideForPlayer(playerid, girl4);
TextDrawHideForPlayer(playerid, nb1);
TextDrawHideForPlayer(playerid, nb2);
TextDrawHideForPlayer(playerid, nb3);
TextDrawHideForPlayer(playerid, hobos1);
TextDrawHideForPlayer(playerid, hobos2);
TextDrawHideForPlayer(playerid, hobos3);
TextDrawHideForPlayer(playerid, hobos4);
TextDrawHideForPlayer(playerid, richfags1);
TextDrawHideForPlayer(playerid, richfags2);
TextDrawHideForPlayer(playerid, richfags3);
ApplyAnimation(playerid, "RAPPING", "RAP_A_IN", 4.0, 1, 0, 0, 0, 0);
PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
GameTextForPlayer(playerid,"~r~Team ~w~: ~p~mountain people~n~~r~owner ~w~: n/a~n~~r~2nd leader ~w~: n/a",5000,5);
}
}
return 1;
}
**The commands are right i am 100000% sure
Regards,
Blacklisted_Bboy