HELP Please
#1

Another problem with
Код HTML:
if(DMVT [playerid]> 0)
	{
	new idx;
	tmp = strtok(text, idx);
		if(DMVT [playerid]== 1)
		{
			if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
			{
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Raspuns corect,trecem la urmatoarea intrebare !");
			SetTimerEx("DMVTest2", 5000, 0, "d", playerid);
			return 0;
			}
			else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else
			{
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"|_____ Intrebare Examen _____|");
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce fac daca vad o masina de politie cu girofarul pornit urmarind un suspect iar eu sunt in masina ?");
			SendClientMessage(playerid,COLOR_YELLOW2," A: Opresc masina in pozitia curenta ");
			SendClientMessage(playerid,COLOR_YELLOW2," B: Ma bag in fata lor ");
			SendClientMessage(playerid,COLOR_YELLOW2," C: Trag pe dreapta ");
			SendClientMessage(playerid,COLOR_YELLOW2," D: Ma duc si incerc sa ajut politia ");
			}
		}
		if(DMVT [playerid]== 2)
		{
			if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")))
			{
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Raspuns corect,trecem la urmatoarea intrebare !");
			SetTimerEx("DMVTest3", 5000, 0, "d", playerid);
			return 0;
			}
			else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else
			{
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"|_____ Intrebare Examen _____|");
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce pot patesc daca particip intr-o cursa ilegale ?");
			SendClientMessage(playerid,COLOR_YELLOW2," A: Nimic,sunt regele soselelor ");
			SendClientMessage(playerid,COLOR_YELLOW2," B: Pot intra la inchisoare ");
			SendClientMessage(playerid,COLOR_YELLOW2," C: Imi pot distruge masina si nu pot plati reparatile ");
			SendClientMessage(playerid,COLOR_YELLOW2," D: Pot sa o castig si sa primesc marele premiu ");
			}
		}
		if(DMVT [playerid]== 3)
		{
			if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
			{
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Raspuns corect,trecem la urmatoarea intrebare !");
			SetTimerEx("DMVTest4", 5000, 0, "d", playerid);
			return 0;
			}
			else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else
			{
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"|_____ Intrebare Examen _____|");
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Ce fac daca cineva imi fura masina ?");
			SendClientMessage(playerid,COLOR_YELLOW2," A: Ma duc,il dau jos din masina,il bat si mi-o iau inapoi ");
			SendClientMessage(playerid,COLOR_YELLOW2," B: Alerg pana gasesc alta si o fur ");
			SendClientMessage(playerid,COLOR_YELLOW2," C: Sun la politie (( /call 911 )) ");
			SendClientMessage(playerid,COLOR_YELLOW2," D: Merg pe jos ");
			}
		}
		if(DMVT [playerid]== 4)
		{
			if ((strcmp("A", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("A")))
			{
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Raspuns corect.Ai trecut testul din sala !");
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Du-te afara si ia o masina pentru a da traseul !");
			TogglePlayerControllable(playerid, 1);
			DMVT [playerid]= 0;
			TakingLesson [playerid]= 1;
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "** The Instructor takes a pair of keys from his pockets and hands it to %s **", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			return 0;
			}
			else if ((strcmp("B", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("B")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("C", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("C")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
			}
			else if ((strcmp("D", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("D")))
			{
			SendClientMessage(playerid,COLOR_LIGHTRED," Raspuns gresit.Ai picat testul !");
			DMVT [playerid]= 0;
			TogglePlayerControllable(playerid, 1);
			return 0;
    		}
			else
			{
			SendClientMessage(playerid,COLOR_LIGHTGREEN,"|_____ Intrebare Examen _____|");
			SendClientMessage(playerid,COLOR_LIGHTBLUE," Cand pot conduce pe partea stanga ?");
			SendClientMessage(playerid,COLOR_YELLOW2," A: Cand drumul de pe partea dreapta este blocat ");
			SendClientMessage(playerid,COLOR_YELLOW2," B: Cand vreau ");
			SendClientMessage(playerid,COLOR_YELLOW2," C: Cand este ceata in fata ");
			SendClientMessage(playerid,COLOR_YELLOW2," D: Cand este o coada imensa in fata mea si nu vreau sa astept ");
			}
		}
	}
theese are errors
Код HTML:
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73140) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73143) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73144) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73146) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73151) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73153) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73158) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73160) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73164) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73166) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73171) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73173) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73183) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73185) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73190) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73192) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73196) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73198) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73203) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73205) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73210) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73212) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73222) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73224) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73229) : error 010: invalid function or declaration
C:\Users\Claudiu\Desktop\BlackUnion MySql\gamemodes\gm.pwn(73231) : error 010: invalid function or declaration
what s wrong ? how fix them ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)