Jump to content
  • 0

problma carkey


robiatti

Question

Sall sa-mp.ro Am revenit cu o problema daca ma puteti ajuta si pe mine vas multumi foarte mult! Problema mia este urmatoarele Erori!:

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(8851) : warning 225: unreachable code

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10777) : error 017: undefined symbol "carkey"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10733) : warning 204: symbol is assigned a value that is never used: "carkey3"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : fatal error 107: too many error messages on one line

Multumesc Si Sper Sama Ajutati!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

Dela 8843 pana la 8851 :

SetPlayerCameraPos(playerid, 1460.0, -1324.0, 287.2);

SetPlayerCameraLookAt(playerid, 1374.5, -1291.1, 239.0);

PlayerInfo[playerid][pModel] = Peds[classid][0];

SetPlayerTeamFromClass(playerid,classid);

}

else SpawnPlayer(playerid);

return false;

if (classid == 1)

Iar dela 8851 pana la 8857:

if (classid == 1)

{

SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:PDTD);

TextDrawHideForPlayer(playerid,Text:FBITD);

TextDrawHideForPlayer(playerid,Text:civilian);

}

Link to comment
Share on other sites

public OnPlayerRequestClass(playerid, classid)

{

new string[128];

PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);

PlayerInfo[playerid][pModel] = Peds[classid][0];

if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)

{

ClearChatbox(playerid, 10);

format(string, sizeof(string), "Bun Venit Pe server, Running %s", SCRIPT_VERSION);

SendClientMessage(playerid, COLOR_CIVILIAN, string);

SendClientMessage(playerid, COLOR_CIVILIAN, " ");

if (gPlayerAccount[playerid] != 0)

{

}

else

{

}

SetPlayerCameraPos(playerid, 1460.0, -1324.0, 287.2);

SetPlayerCameraLookAt(playerid, 1374.5, -1291.1, 239.0);

PlayerInfo[playerid][pModel] = Peds[classid][0];

SetPlayerTeamFromClass(playerid,classid);

}

else SpawnPlayer(playerid);

return false;

if (classid == 1)

{

SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:PDTD);

TextDrawHideForPlayer(playerid,Text:FBITD);

TextDrawHideForPlayer(playerid,Text:civilian);

}

else if (classid == 2)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:FBITD);

TextDrawHideForPlayer(playerid,Text:NGTD);

TextDrawHideForPlayer(playerid,Text:PDTD);

}

else if (classid == 3)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:NGTD);

TextDrawHideForPlayer(playerid,Text:MFTD);

TextDrawHideForPlayer(playerid,Text:FBITD);

}

else if (classid == 4)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:MFTD);

TextDrawHideForPlayer(playerid,Text:LCNTD);

TextDrawHideForPlayer(playerid,Text:NGTD);

}

else if (classid == 5)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:LCNTD);

TextDrawHideForPlayer(playerid,Text:YKZTD);

TextDrawHideForPlayer(playerid,Text:MFTD);

}

else if (classid == 6)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:YKZTD);

TextDrawHideForPlayer(playerid,Text:MAYORTD);

TextDrawHideForPlayer(playerid,Text:LCNTD);

}

else if (classid == 7)

{

            SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:MAYORTD);

TextDrawHideForPlayer(playerid,Text:HITMANTD);

TextDrawHideForPlayer(playerid,Text:YKZTD);

}

else if (classid == 8)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:HITMANTD);

TextDrawHideForPlayer(playerid,Text:NRTD);

TextDrawHideForPlayer(playerid,Text:MAYORTD);

}

else if (classid == 9)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:NRTD);

TextDrawHideForPlayer(playerid,Text:TAXITD);

TextDrawHideForPlayer(playerid,Text:HITMANTD);

}

else if (classid == 10)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:TAXITD);

TextDrawHideForPlayer(playerid,Text:LICTD);

TextDrawHideForPlayer(playerid,Text:NRTD);

}

else if (classid == 11)

{

            SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:LICTD);

TextDrawHideForPlayer(playerid,Text:VIVATD);

TextDrawHideForPlayer(playerid,Text:TAXITD);

}

else if (classid == 12)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:VIVATD);

TextDrawHideForPlayer(playerid,Text:GUNITTD);

TextDrawHideForPlayer(playerid,Text:LICTD);

}

else if (classid == 13)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:GUNITTD);

TextDrawHideForPlayer(playerid,Text:TOWTD);

TextDrawHideForPlayer(playerid,Text:VIVATD);

}

else if (classid == 14)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:TOWTD);

TextDrawHideForPlayer(playerid,Text:SRMTD);

TextDrawHideForPlayer(playerid,Text:GUNITTD);

}

else if (classid == 15)

{

        SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:SRMTD);

TextDrawHideForPlayer(playerid,Text:civilian);

TextDrawHideForPlayer(playerid,Text:TOWTD);

}

else

{

    SetTimer("RequestHide",5000,0);

TextDrawShowForPlayer(playerid,Text:civilian);

TextDrawHideForPlayer(playerid,Text:SRMTD);

TextDrawHideForPlayer(playerid,Text:PDTD);

}

SetPlayerTeamFromClass(playerid,classid);

SetupPlayerForClassSelection(playerid);

return 1;

}

Link to comment
Share on other sites

Schimba-l cu

public OnPlayerRequestClass(playerid, classid)
{
	new string[128];
	PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];

	if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
	{
		ClearChatbox(playerid, 10);
		format(string, sizeof(string), "Bun Venit Pe server, Running %s", SCRIPT_VERSION);
		SendClientMessage(playerid, COLOR_CIVILIAN, string);
		SendClientMessage(playerid, COLOR_CIVILIAN, " ");
		SetPlayerCameraPos(playerid, 1460.0, -1324.0, 287.2);
		SetPlayerCameraLookAt(playerid, 1374.5, -1291.1, 239.0);
		PlayerInfo[playerid][pModel] = Peds[classid][0];
		SetPlayerTeamFromClass(playerid,classid);
	}
	else return SpawnPlayer(playerid);

	if (classid == 1)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:PDTD);
		TextDrawHideForPlayer(playerid,Text:FBITD);
		TextDrawHideForPlayer(playerid,Text:civilian);
	}
	else if (classid == 2)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:FBITD);
		TextDrawHideForPlayer(playerid,Text:NGTD);
		TextDrawHideForPlayer(playerid,Text:PDTD);
	}
	else if (classid == 3)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:NGTD);
		TextDrawHideForPlayer(playerid,Text:MFTD);
		TextDrawHideForPlayer(playerid,Text:FBITD);
	}
	else if (classid == 4)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:MFTD);
		TextDrawHideForPlayer(playerid,Text:LCNTD);
		TextDrawHideForPlayer(playerid,Text:NGTD);
	}
	else if (classid == 5)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:LCNTD);
		TextDrawHideForPlayer(playerid,Text:YKZTD);
		TextDrawHideForPlayer(playerid,Text:MFTD);
	}
	else if (classid == 6)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:YKZTD);
		TextDrawHideForPlayer(playerid,Text:MAYORTD);
		TextDrawHideForPlayer(playerid,Text:LCNTD);
	}
	else if (classid == 7)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:MAYORTD);
		TextDrawHideForPlayer(playerid,Text:HITMANTD);
		TextDrawHideForPlayer(playerid,Text:YKZTD);
	}
	else if (classid == 8)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:HITMANTD);
		TextDrawHideForPlayer(playerid,Text:NRTD);
		TextDrawHideForPlayer(playerid,Text:MAYORTD);
	}
	else if (classid == 9)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:NRTD);
		TextDrawHideForPlayer(playerid,Text:TAXITD);
		TextDrawHideForPlayer(playerid,Text:HITMANTD);
	}
	else if (classid == 10)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:TAXITD);
		TextDrawHideForPlayer(playerid,Text:LICTD);
		TextDrawHideForPlayer(playerid,Text:NRTD);
	}
	else if (classid == 11)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:LICTD);
		TextDrawHideForPlayer(playerid,Text:VIVATD);
		TextDrawHideForPlayer(playerid,Text:TAXITD);
	}
	else if (classid == 12)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:VIVATD);
		TextDrawHideForPlayer(playerid,Text:GUNITTD);
		TextDrawHideForPlayer(playerid,Text:LICTD);
	}
	else if (classid == 13)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:GUNITTD);
		TextDrawHideForPlayer(playerid,Text:TOWTD);
		TextDrawHideForPlayer(playerid,Text:VIVATD);
	}
	else if (classid == 14)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:TOWTD);
		TextDrawHideForPlayer(playerid,Text:SRMTD);
		TextDrawHideForPlayer(playerid,Text:GUNITTD);
	}
	else if (classid == 15)
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:SRMTD);
		TextDrawHideForPlayer(playerid,Text:civilian);
		TextDrawHideForPlayer(playerid,Text:TOWTD);
	}
	else
	{
		SetTimer("RequestHide",5000,0);
		TextDrawShowForPlayer(playerid,Text:civilian);
		TextDrawHideForPlayer(playerid,Text:SRMTD);
		TextDrawHideForPlayer(playerid,Text:PDTD);
	}
	SetPlayerTeamFromClass(playerid,classid);
	SetupPlayerForClassSelection(playerid);
	return 1;
}

Link to comment
Share on other sites

Bun multumesc si dupa aia a dat asta...:

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10775) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10775) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10775) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10775) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

Deasupra:

format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] Vehicle [%d] HireKey [%d] int:[%d] virworld:[%d] local[%d]", housekey,bizkey,carkey2,HireCar[targetid],intir,virworld,local);

? ca asta e 10775

Da, deasupra la linia aia pui ce ti-am zis, nu se putea sa nu mai intrebi, ci sa incerci ?
Link to comment
Share on other sites

asa am incercat dar team intrebat sa fiu sigur urmatoarea eroare....

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10776) : error 017: undefined symbol "housekey"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

asa am incercat dar team intrebat sa fiu sigur urmatoarea eroare....

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10776) : error 017: undefined symbol "housekey"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 017: undefined symbol "coordsstring"

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Rocker\Desktop\Bloodz\gamemodes\BlodZ.pwn(10782) : fatal error 107: too many error messages on one line

Nu le-ai definit, deasupra liniei 10782 adauga ce ti-am zis mai sus cu coordsstring, iar la housekey cauta undeva prin script ceva gen new housekey si pune-l si deasupra linie 10.776.

Ce postezi erori d'astea ? Erorile spun clar ce are, daca nu stii engleza, lasa-te.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.