Jump to content
  • 0

pomoc Podminky


CZskypr

Dotaz

new str[100];

new cislo = CalculateDayInWeek(playerid);

if(cislo == 1) format(str, sizeof(str), DATE_DAY_1);

if(cislo == 2) format(str, sizeof(str), DATE_DAY_2);

if(cislo == 3) format(str, sizeof(str), DATE_DAY_3);

if(cislo == 4) format(str, sizeof(str), DATE_DAY_4);

if(cislo == 5) format(str, sizeof(str), DATE_DAY_5);

if(cislo == 6) format(str, sizeof(str), DATE_DAY_6);

if(cislo == 7) format(str, sizeof(str), DATE_DAY_7);

TextDrawSetString(TextDraws[playerid][TDD_Days], str);

 

v červenym řadku je chyba.

ERORY:

C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "r"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "Po"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "w"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

19 odpovědí na tuto otázku

Recommended Posts

  • 0

tak sem to skušel ale nejde to :ERORY

C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "r"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "Po"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "w"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : fatal error 107: too many error messages on one line

a mam to takto

if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);

Link to comment
Share on other sites

  • 0
tak sem to skušel ale nejde to :ERORY

C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "r"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "Po"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : error 017: undefined symbol "w"
C:\Users\Sk1Pr\Desktop\driftPOWERS(c)\GameMode\driftPOWERS(c).pwn(191) : fatal error 107: too many error messages on one line

a mam to takto

if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);

 

zmenil si to vo všetkých tak ?

Link to comment
Share on other sites

  • 0

Ano

						if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);
					if(cislo == 2) format(str, sizeof(str), "%s", DATE_DAY_2);
					if(cislo == 3) format(str, sizeof(str), "%s", DATE_DAY_3);
					if(cislo == 4) format(str, sizeof(str), "%s", DATE_DAY_4);
					if(cislo == 5) format(str, sizeof(str), "%s", DATE_DAY_5);
					if(cislo == 6) format(str, sizeof(str), "%s", DATE_DAY_6);
					if(cislo == 7) format(str, sizeof(str), "%s", DATE_DAY_7);

Link to comment
Share on other sites

  • 0

public OnPlayerSpawn(playerid)

{

if(GetPVarInt(playerid, "ConfigTextDraws1") == 1)

{

TextDraws[playerid][TDD_Time] = TextDrawCreate(547, 26, "08:32");

TextDrawLetterSize(TextDraws[playerid][TDD_Time], 0.500000, 2.000000);

TextDrawAlignment(TextDraws[playerid][TDD_Time], 0);

TextDrawBackgroundColor(TextDraws[playerid][TDD_Time], 0x000000ff);

TextDrawFont(TextDraws[playerid][TDD_Time], 3);

TextDrawUseBox(TextDraws[playerid][TDD_Time], 0);

TextDrawSetOutline(TextDraws[playerid][TDD_Time], 1);

TextDrawSetProportional(TextDraws[playerid][TDD_Time], 1);

TextDrawSetShadow(TextDraws[playerid][TDD_Time], 1);

TextDrawShowForPlayer(playerid, TextDraws[playerid][TDD_Time]);

TextDrawSetString(TextDraws[playerid][TDD_Time], CalculatePlayerTimeAsString(playerid));

}

//-----|

if(GetPVarInt(playerid, "ConfigTextDraws3") == 1)

{

TextDraws[playerid][TDD_Days] = TextDrawCreate(541, 17, "~r~Po ~w~Ut ~w~St ~w~Ct ~w~Pa ~w~So ~w~Ne");

TextDrawLetterSize(TextDraws[playerid][TDD_Days], 0.199999, 1.100000);

TextDrawAlignment(TextDraws[playerid][TDD_Days], 0);

TextDrawBackgroundColor(TextDraws[playerid][TDD_Days], 0x000000ff);

TextDrawFont(TextDraws[playerid][TDD_Days], 1);

TextDrawUseBox(TextDraws[playerid][TDD_Days], 0);

TextDrawSetOutline(TextDraws[playerid][TDD_Days], 0);

TextDrawSetProportional(TextDraws[playerid][TDD_Days], 1);

TextDrawSetShadow(TextDraws[playerid][TDD_Days], 1);

TextDrawShowForPlayer(playerid, TextDraws[playerid][TDD_Days]);

//-----|

new str[100];

new cislo = CalculateDayInWeek(playerid);

if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);

if(cislo == 2) format(str, sizeof(str), "%s", DATE_DAY_2);

if(cislo == 3) format(str, sizeof(str), "%s", DATE_DAY_3);

if(cislo == 4) format(str, sizeof(str), "%s", DATE_DAY_4);

if(cislo == 5) format(str, sizeof(str), "%s", DATE_DAY_5);

if(cislo == 6) format(str, sizeof(str), "%s", DATE_DAY_6);

if(cislo == 7) format(str, sizeof(str), "%s", DATE_DAY_7);

TextDrawSetString(TextDraws[playerid][TDD_Days], str);

}

//-----|

if(GetPVarInt(playerid, "ConfigTextDraws2") == 1)

{

TextDraws[playerid][TDD_Date] = TextDrawCreate(500, 6, "Today it is 1.1.2012");

TextDrawLetterSize(TextDraws[playerid][TDD_Date], 0.299999, 1.200000);

TextDrawAlignment(TextDraws[playerid][TDD_Date], 0);

TextDrawBackgroundColor(TextDraws[playerid][TDD_Date], 0x000000ff);

TextDrawFont(TextDraws[playerid][TDD_Date], 1);

TextDrawUseBox(TextDraws[playerid][TDD_Date], 0);

TextDrawSetOutline(TextDraws[playerid][TDD_Date], 0);

TextDrawSetProportional(TextDraws[playerid][TDD_Date], 1);

TextDrawSetShadow(TextDraws[playerid][TDD_Date], 1);

TextDrawShowForPlayer(playerid, TextDraws[playerid][TDD_Date]);

UpdatePlayerDateDraw(playerid);

}

return 1;

}

Link to comment
Share on other sites

  • 0

Takto :

//-----|

new str[100];

new cislo = CalculateDayInWeek(playerid);

if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);

if(cislo == 2) format(str, sizeof(str), "%s", DATE_DAY_2);

if(cislo == 3) format(str, sizeof(str), "%s", DATE_DAY_3);

if(cislo == 4) format(str, sizeof(str), "%s", DATE_DAY_4);

if(cislo == 5) format(str, sizeof(str), "%s", DATE_DAY_5);

if(cislo == 6) format(str, sizeof(str), "%s", DATE_DAY_6);

if(cislo == 7) format(str, sizeof(str), "%s", DATE_DAY_7);

}

TextDrawSetString(TextDraws[playerid][TDD_Days], str);

//-----|

takto sem to skusal ane neide

 

nebo takto

//-----|

new str[100];

new cislo = CalculateDayInWeek(playerid);

if(cislo == 1) format(str, sizeof(str), "%s", DATE_DAY_1);

if(cislo == 2) format(str, sizeof(str), "%s", DATE_DAY_2);

if(cislo == 3) format(str, sizeof(str), "%s", DATE_DAY_3);

if(cislo == 4) format(str, sizeof(str), "%s", DATE_DAY_4);

if(cislo == 5) format(str, sizeof(str), "%s", DATE_DAY_5);

if(cislo == 6) format(str, sizeof(str), "%s", DATE_DAY_6);

if(cislo == 7) format(str, sizeof(str), "%s", DATE_DAY_7);

TextDrawSetString(TextDraws[playerid][TDD_Days], str);

//-----|

Link to comment
Share on other sites

  • 0

Nechcem moc mudrovať pawno som nerobil už rok ale myslím, že tú definíciu máš zle.

skús takto

#define DATE_DAY_1 ~r~Po
#define DATE_DAY_2 ~w~Ut
#define DATE_DAY_3 ~w~St
#define DATE_DAY_4 ~w~Ct
#define DATE_DAY_5 ~w~Pa
#define DATE_DAY_6 ~w~So
#define DATE_DAY_7 ~w~Ne

Link to comment
Share on other sites

  • 0

ja to podřebuju tak to je texdraw a tak ho chci tamtym si moc neviřešim nic.

#define DATE_DAY_1 ~r~Po ~w~Ut ~w~St ~w~Ct ~w~Pa ~w~So ~w~Ne
#define DATE_DAY_2 ~w~Po ~r~Ut ~w~St ~w~Ct ~w~Pa ~w~So ~w~Ne
#define DATE_DAY_3 ~w~Po ~w~Ut ~r~St ~w~Ct ~w~Pa ~w~So ~w~Ne
#define DATE_DAY_4 ~w~Po ~w~Ut ~w~St ~r~Ct ~w~Pa ~w~So ~w~Ne
#define DATE_DAY_5 ~w~Po ~w~Ut ~w~St ~w~Ct ~r~Pa ~w~So ~w~Ne
#define DATE_DAY_6 ~w~Po ~w~Ut ~w~St ~w~Ct ~w~Pa ~r~So ~w~Ne
#define DATE_DAY_7 ~w~Po ~w~Ut ~w~St ~w~Ct ~w~Pa ~w~So ~r~Ne

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...