Tutorial bug
#1

I need help. The tutorial does not start in the game.
Код:
if(TutTime[i] >= 1)
			{
				TutTime[i] += 1;
				if(TutTime[i] == 3)
				{
                    TogglePlayerSpectating(i, 1);
                SetPlayerPos(i, 155.3337, -1776.4384, 14.8978+5.0);
		
                TogglePlayerControllable(i, false);
                PlayAudioStreamForPlayer(i, "https://dl.dropboxusercontent.com/s/z834k2bgngbcmm6/kbgdHubwVdkG.128.mp3");
                SetPlayerCameraPos(i, 155.3337, -1776.4384, 14.8978);
                SetPlayerCameraLookAt(i, 156.2734, -1776.0850, 14.2128);
                InterpolateCameraLookAt(i, 156.2734, -1776.0850, 14.2128, 156.2713, -1776.0797, 14.7078, 5000, CAMERA_MOVE);
                
				TextDrawShowForPlayer(i, rpg1[i]); 
				TextDrawShowForPlayer(i, box01[i]); 
                TextDrawSetString(texts[i], "Salut, Bine ai venit pe  Bluring RPG~n~Acum o sa iti prezint un scurt tutorial~n~In primul rand toti jucatori trebuie sa stie ce sa faca si ce sa nu faca~n~Iti voi da cateva informati, asa ca te rog sa fi atent pentru a evita intrebarile" );
				TextDrawShowForPlayer(i, texts[i]); 
             
			    }
			    else if(TutTime[i] == 16)
			    {
			       
                        InterpolateCameraPos(i, 187.600982, -1791.727050, 119.087432, 193.731567, -1789.235473, 118.845245, 5000);
                            InterpolateCameraLookAt(i, 189.006942, -1790.279785, 114.512641, 195.057144, -1788.512817, 114.078620, 5000);
			        TextDrawSetString(texts[i], "Acest server este RP care vine de la RolePlay~n~Numele in joc conteaza foarte mult, fiecare jucator poate sa-si aleaga ce nume vrea.~n~Deci ar fi bine sa-ti pui un nume cat mai descifrat de exemplu: Madalin ,Cristian, Alex, Ionut,Andrei,etc~n~Daca vrei sa sti mai multe despre RPG, intra pe www.xcstrike.com/forum nostru si cautati topicuri.~n~Ne poti gasi pe forumu-ul: www.xcstrike.com/forum" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 32)
			    {
			         InterpolateCameraPos(i, 300.803771, -1753.841796, 59.482250, 332.887237, -1753.466674, 60.534908, 4000);
                            InterpolateCameraLookAt(i, 302.467315, -1749.504394, 57.633026, 334.005126, -1748.907470, 58.813385, 4000);
			        TextDrawSetString(texts[i], "Daca esti confuz sau vrei sa afli alte informatii, intreaba un admin(/report)~n~Ca de exemplu: 'Salut ma poti ajuta o secunta?~n~Foloseste comenzile: /call sau /sms (daca ai un telefon) pentru a vorbi cu cineva~n~Sa nu jignesti niciodata pe cineva , vei avea de suferit" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 54)
			    {
			       InterpolateCameraPos(i, 350.840972, -1794.716308, 13.146982, 346.193756, -1800.415649, 10.697548, 8000);
                            InterpolateCameraLookAt(i, 348.053558, -1790.653564, 12.295993, 342.141357, -1797.657592, 9.712170, 8000);
			        TextDrawSetString(texts[i], "Pentru a castiga un ban trebuie sa ai un job~n~Joburi: Detectiv, Avocat, Mechanic, Dealer de Droguri, Dealer de arme~n~Miner, Sofer de Tren, Padurar, (pentru a vedea toate joburile /jobs)~n~Pentru a vedea factiunile serverului scrie /factions" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 76)
			    {
			        InterpolateCameraPos(i, 169.602859, -1775.647705, 6.933395, 169.617141, -1776.156250, 12.790164, 5000);
                            InterpolateCameraLookAt(i, 169.547332, -1770.651367, 7.117267, 169.588928, -1771.159301, 12.618641, 5000);
				     TextDrawSetString(texts[i], "Fiind un mod RolePlay, vei putea face level in functie de cat stai pe server~n~Pentru a face level up ai nevoie de un anumit numar de Respect-Points(RP)~n~Faci cate un Respect Point la fiecare payday adica la ora fix~n~Pentru a vedea de cate RP mai ai nevoie pentru level up scri /stats si te uiti la Respect~n~Cand ai ajuns la numarul necesar de RP dai, /buylevel ca sa faci level up(te costa o suma de bani" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 98)
			    {
			          InterpolateCameraPos(i, 386.273284, -2030.129516, 59.993469, 395.822113, -2044.595703, 59.993469, 5000);
                            InterpolateCameraLookAt(i, 386.591949, -2029.832275, 55.012496, 396.252319, -2044.526245, 55.012496, 5000);
				    
			         TextDrawSetString(texts[i], "Este interzis cu desavarsire utilizarea aplicatilor de tip hack~n~Daca vezi pe cineva care foloseste coduri te rugam sa dai /report sau /ajutor~n~Cei care folosesc coduri primesc ban permanent~n~Nu uita ca avem un sisteam anti-chat care detecta anumite coduri si vei primi ban automat" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 110)
			    {
			         InterpolateCameraPos(i, 341.018402, -2095.904052, 6.937077, 342.805603, -2096.498535, 6.648118, 5000);
                            InterpolateCameraLookAt(i, 345.258972, -2093.501220, 5.821543, 347.304443, -2094.563964, 5.639461, 5000);
				    TextDrawSetString(texts[i], "Vream ca fiecare jucator sa vorbeasca limba Romana sau Engleza pe chat~n~Daca vrei sa utilizezi smile-uri foloseste /b~n~De asemenea nu ai voie sa folosesti un limbaj obscen~n~Publicitatea altor servere duce instant la ban permanent !!" );
					TextDrawShowForPlayer(i, texts[i]); 
			    }
			    else if(TutTime[i] == 119)
			    {
				    ClearChatbox(i, 15);
					TextDrawHideForPlayer(i, texts[i]); 
					TextDrawHideForPlayer(i, box01[i]); 
					TextDrawHideForPlayer(i, rpg1[i]); 
				    SendClientMessage(i, COLOR_LIGHTGREEN, "_____________________ |Sfarsit| __________________________________ ");
			        SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Sper ca ai inteles cate ceva din RolePlay.");
			        SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Daca ai o nelamurire foloseste /ajutor.");
				    SendClientMessage(i, COLOR_YELLOW2, "{a9c4e4}Bluring RPG iti ureaza distractie placuta .");
					SendClientMessage(i, COLOR_LIGHTGREEN, "__________________________________________________________________ ");
					TogglePlayerSpectating(i, 0);
					TutTime[i] = 0; PlayerData[i][pTut] = 1;
					gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0;
					TogglePlayerControllable(i, 1);
					MedicBill[i] = 0;
					SetPlayerSpawn(i);
					GivePlayerCash(i, 6000);
					SetCameraBehindPlayer(i);
					PlayerData[i][pMSG] = 0;
				
				if(PlayerData[i][pOrigin] == 1)
				{
					SetPlayerCheckpoint(i,1413.3684,-1700.7410,13.5423,7.0);
				}
				else if(PlayerData[i][pOrigin] == 2)
				{
					SetPlayerCheckpoint(i,-2084.10,67.28,34.27,7.0);
				}
				SendClientMessage(i, COLOR_WHITE, "{ee5555}Ti-am pus un checkpoint pe map. Dute la el si da examenul pentru permisul de conducere.");
				format(string, sizeof(string), "UPDATE players SET Tutorial='%d' WHERE id=%d", PlayerData[i][pTut], PlayerData[i][pSQLID]);
				mysql_query(string);
				format(string, sizeof(string), "UPDATE players SET MSG='%d' WHERE id=%d", PlayerData[i][pMSG], PlayerData[i][pSQLID]);
				mysql_query(string);
			}
	   }
Reply
#2

Well, great. So we must read all of this, understand what's going on here and guess what you mean saying "it's not working".
What is it? For what is it? How actually in must work and what you get instead?
Reply
#3

Okay..
So lets assume I actually read all of this.

Because I didn't...
I just skimmed..
You're basically saying...

RIGHT at the top..
if(TutTime[i] >= 1) - Then it continues into the statement..

So step 1, Make sure that person actually has a Tuttime of 1? or higher..

But after that you're then saying
TutTime[i] += 1;
if(TutTime[i] == 3)

So.. Lets for example sake say..
TuTTime[i] == 1..
Then
TutTime += 1;
Your total TutTime == 2..
so it wouldn't pass any of your IF statements..
get what I'm saying
Reply
#4

Quote:
Originally Posted by Prokill911
Посмотреть сообщение
Okay..
So lets assume I actually read all of this.

Because I didn't...
I just skimmed..
You're basically saying...

RIGHT at the top..
if(TutTime[i] >= 1) - Then it continues into the statement..

So step 1, Make sure that person actually has a Tuttime of 1? or higher..

But after that you're then saying
TutTime[i] += 1;
if(TutTime[i] == 3)

So.. Lets for example sake say..
TuTTime[i] == 1..
Then
TutTime += 1;
Your total TutTime == 2..
so it wouldn't pass any of your IF statements..
get what I'm saying
Exactly. The thing he needs for this is some kind of timer to add TutTimes ++ which he apparently doesn't have
Reply
#5

Hmm,i'll try to add TutTimers++
Reply
#6

Nope,it does not work.
Reply
#7

I mean,the TextDraw tutorial does not work when a new player make a new account.


Is a RPG tutorial.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)