Jump to content
  • 0

Erori ...


MiTzA

Question

Salut am cateva erori am incercat sa traduc modul ravens rp si cand dau compile da eroare

C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17739) : warning 217: loose indentation
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17744) : error 010: invalid function or declaration
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17748) : error 010: invalid function or declaration
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19759) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19760) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25742) : error 017: undefined symbol "string3"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

gamemod dwd: aici

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

Salut am cateva erori am incercat sa traduc modul ravens rp si cand dau compile da eroare

C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17739) : warning 217: loose indentation
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17744) : error 010: invalid function or declaration
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(17748) : error 010: invalid function or declaration
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19759) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19760) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25742) : error 017: undefined symbol "string3"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
gamemod dwd: aici
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"
C:\Documents and Settings\MiTzA^^\Desktop\Raven's Roleplay 0.3c\gamemodes\larp.pwn(25742) : error 017: undefined symbol "string3"

Nu sunt definite: adauga :#define COLOR_BLUE 0xculoareFF si new string[256];

 

Link to comment
Share on other sites

#define COLOR_BLUE 0x2641FEAA

#define COLOR_1BLUE 0x2641FEAA

astea sunt deja

si la new string[256]; cum,unde pun ? sunt incepator

la linia " 25742 " modifica string3 cu string2 pentru ca e definit 2 iar restu functilor au cu 2 :)

iar la color blue aia , incearca sa pui " 0x2641FEAA "

iar la warningu-l ala  de la linia " 17739 " ai o paranteaza asa ceva de genu } , sterge-o

la linile :  19760 si 19759, trebe sa modifici new drank[20] cu new drank[128];

 

Link to comment
Share on other sites

Mai sus de linia 19759 ai " new drank[20];, modifica 20 cu 64 sau 128!

iar apoi modific onplayerrecuestclass cu

public OnPlayerRequestClass(playerid, classid)
{
	new string[768];
	PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
	ClearChatbox(playerid, 10);
	format(string, sizeof(string), "Welcome to Raven's Roleplay, running Raven's Roleplay %s STABLE", Version);
	SendClientMessage(playerid, COLOR_YELLOW, string);
	SendClientMessage(playerid, COLOR_YELLOW2, " ");
	new message[] = "\t\t\t\t\t\t Raven's Roleplay Terms and Conditions \n\n\n\n\n\n 1- This server contains adult content. You agree that you have the legal age in your country to be exposed to such material\n\n 2- This server does not allows Hacks, you agree that you are not going to use any third party program in order to get any advantage.";
	new message2[] = "\n\n 3- By Reading this, you agree to Follow all server /rules with risk of being kicked or banned by breaking them.\n\n 4- By reading this you also agree that you will obey administrators ALWAYS, unless it breaks any term (1) (2) (3) (5). \n\n 5- This server obeys the Terms and Conditions made by the SA:MP Team at www.sa-mp.com/service_agreement \n\n\n Press on 'Agree' If you Agree, 'Refuse' If you refuse.";
	format(string, sizeof(string),"%s %s",message,message2);
	ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"Raven's Roleplay Terms and Conditions",string,"Agree","Refuse");
	SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
	SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
	//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];
    SetPlayerTeamFromClass(playerid,classid);
	SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
	SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
	//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
	PlayerInfo[playerid][pModel] = Peds[classid][0];
	SetPlayerTeamFromClass(playerid,classid);
	return false;
}
E tot acelasi OnPlayerRequestClass doar ca l-am editat eu! iar vezi ca acolo modifica  COLOR_BULE cu COLOR_BLUE! iar acolo unde e string3 modifica cu string2 la ala cu drank ai asa ma
		new drank[20]; // aici modifica 20 cu 128 ar veni: new drank[128];
		if(PlayerInfo[targetid][pRegularRank] == 1) { drank = "Player Regulat"; }
		else if(PlayerInfo[targetid][pRegularRank] == 2) { drank = "Player regulat lvl. 2"; }
		else if(PlayerInfo[targetid][pRegularRank] == 3) { drank = "Membru de platina Regulat"; }
		else { drank = "None"; }

 

Link to comment
Share on other sites

done dar apare

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(551) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17744) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17748) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Link to comment
Share on other sites

done dar apare

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(551) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17744) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17748) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

De ce nu faci cum ti-am zis!? uitate mai sus!

 

Link to comment
Share on other sites

sa am si facut

#pragma library Time

#define COLOR_BLUE! 0x2641FEAA

#define COLOR_BLUE 0x2641FEAA

#define COLOR_DBLUE 0x3333CCAA

si

        else { jtext = "None"; }

new drank[128];

if(PlayerInfo[targetid][pRegularRank] == 1) { drank = "Player Regulat"; }

else if(PlayerInfo[targetid][pRegularRank] == 2) { drank = "Player regulat lvl. 2"; }

else if(PlayerInfo[targetid][pRegularRank] == 3) { drank = "Membru de platina Regulat"; }

da tot apare

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(551) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17744) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17748) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(19848) : error 017: undefined symbol "COLOR_BULE"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Link to comment
Share on other sites

adica sa modific toate color_blue cu color_blue! ? :| oricum aia cu define era deja dar fara ! :)

au mai ramas 2 erori :))

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(551) : warning 201: redefinition of constant/macro (symbol "COLOR_BLUE")

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17744) : error 010: invalid function or declaration

C:\Documents and Settings\MiTzA^^\Desktop\larp.pwn(17748) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Errors.

Link to comment
Share on other sites

modifica toata functia OnPlayerRequestClass adica sterge-o si adauga asta

[pawn]

public OnPlayerRequestClass(playerid, classid)

{

new string[768];

PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);

ClearChatbox(playerid, 10);

format(string, sizeof(string), "Welcome to Raven's Roleplay, running Raven's Roleplay %s STABLE", Version);

SendClientMessage(playerid, COLOR_YELLOW, string);

SendClientMessage(playerid, COLOR_YELLOW2, " ");

new message[] = "\t\t\t\t\t\t Raven's Roleplay Terms and Conditions \n\n\n\n\n\n 1- This server contains adult content. You agree that you have the legal age in your country to be exposed to such material\n\n 2- This server does not allows Hacks, you agree that you are not going to use any third party program in order to get any advantage.";

new message2[] = "\n\n 3- By Reading this, you agree to Follow all server /rules with risk of being kicked or banned by breaking them.\n\n 4- By reading this you also agree that you will obey administrators ALWAYS, unless it breaks any term (1) (2) (3) (5). \n\n 5- This server obeys the Terms and Conditions made by the SA:MP Team at www.sa-mp.com/service_agreement \n\n\n Press on 'Agree' If you Agree, 'Refuse' If you refuse.";

format(string, sizeof(string),"%s %s",message,message2);

ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX,"Raven's Roleplay Terms and Conditions",string,"Agree","Refuse");

SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);

SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);

//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);

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

    SetPlayerTeamFromClass(playerid,classid);

SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);

SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);

//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);

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

SetPlayerTeamFromClass(playerid,classid);

return false;

}[/pawn]

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.