Jump to content
  • 0

Problema PayDay textdraw.


SpriteTV

Question

Salut am incercat sa fac si eu dupa tutorial-ul lui Edison cu Payday-ul pe textdraw.

Si nu inteleg ce nu am facut bine ce am gresit..

Erori:+ Linile.

format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d"PlayerInfo[i][pPayDay]/60+1,FormatNumber(checks), FormatNumber(PlayerInfo[i][pAccount]),
				    FormatNumber(TaxValue),FormatNumber(rent[i]), checks-TaxValue);
				    PlayerTextDrawSetString(i, PayDayTD, string3);
				    PlayerTextDrawShow(i, PayDayTD);
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : warning 217: loose indentation
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : warning 215: expression has no effect
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197 -- 20198) : warning 215: expression has no effect
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20198) : error 001: expected token: ";", but found ")"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20198) : error 029: invalid expression, assumed zero
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20198) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[Finished in 10.3s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\SpriteTV\\Desktop\\GMROPLAYERS\\gamemodes\\RoPlayersGM.pwn', '-;+']]
[dir: C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\SpriteTV\AppData\Local\Microsoft\WindowsApps;]

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

ai uitat o virgula 

Total money: $%d"PlayerInfo[i][

trebuie

Total money: $%d",PlayerInfo[i][
Citat
Link to comment
Share on other sites

  • 0
Acum 33 minute, SherKan a spus:

ai uitat o virgula 


Total money: $%d"PlayerInfo[i][

trebuie


Total money: $%d",PlayerInfo[i][

mesi de atentie dar 

tot imi da pe linia asta

format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d",PlayerInfo[i][pPayDay]/60+1,FormatNumber(checks), FormatNumber(PlayerInfo[i][pAccount]),
				    FormatNumber(TaxValue),FormatNumber(rent[i]), checks-TaxValue);
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 001: expected token: ",", but found "�"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 029: invalid expression, assumed zero
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 029: invalid expression, assumed zero
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : fatal error 107: too many error messages on one line

Compilation aborted.[Finished in 10.4s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\SpriteTV\\Desktop\\GMROPLAYERS\\gamemodes\\RoPlayersGM.pwn', '-;+']]
[dir: C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\SpriteTV\AppData\Local\Microsoft\WindowsApps;]

 

Link to comment
Share on other sites

  • 0

incearca sa o pui o singura linie

format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d",PlayerInfo[pPayDay]/60+1,FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]),FormatNumber(TaxValue),FormatNumber(rent), checks-TaxValue);
 

Citat
Link to comment
Share on other sites

  • 0
Acum 1 oră, SherKan a spus:

incearca sa o pui o singura linie

format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d",PlayerInfo[pPayDay]/60+1,FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]),FormatNumber(TaxValue),FormatNumber(rent), checks-TaxValue);
 

imi da la fel 

else finalinterest = interest / 2;
					//PayDaYTD
				    format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d",PlayerInfo[pPayDay]/60+1,FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]),FormatNumber(TaxValue),FormatNumber(rent), checks-TaxValue);
				    //format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~",PlayerInfo[i][pPayDay]/60+1);
					//format(string3, sizeof(string3),"PAYDAY~n~Ore jucate: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d",PlayerInfo[i][pPayDay]/60+1, FormatNumber(checks), FormatNumber(PlayerInfo[i][pAccount]),
				    //FormatNumber(TaxValue), FormatNumber(rent[i]), checks-TaxValue);
				    PlayerTextDrawSetString(i, PayDayTD, string3);
				    PlayerTextDrawShow(i, PayDayTD);
				    format(string, sizeof(string), "~y~payday");
				    GameTextForPlayer(i, string, 5000, 1);
				/*{
				    finalinterest = interest / 2;
				    new stringsu[256];
				    format(stringsu,sizeof(stringsu),"Ai primit doar jumatate din dobanda de la banca pentru ca ai jucat doar %d minute din aceasta ora (31 necesare pentru dobanda intreaga.",PlayerInfo[i][pPayDay]/60+1);
				    SendSplitMessage(i, COLOR_LIGHTBLUE, stringsu);
				}
				PlayerInfo[i][pExp] += 1;
				PlayerInfo[i][pAccount] += finalinterest;
				format(string, sizeof(string), "Paycheck: $%s | Bank balance: $%s | Bank interest: $%s | Tax: $%s (10 percent)", FormatNumber(checks), FormatNumber(PlayerInfo[i][pAccount]), FormatNumber(finalinterest), FormatNumber(TaxValue));
				SendClientMessage(i, COLOR_GREY, string);
				format(string3, sizeof(string3), "Rent: $%s | Total earnings: $%d", FormatNumber(rent[i]), checks-TaxValue);*/
				//SendClientMessage(i, COLOR_GREY, string3);
				//SendClientMessage(i, COLOR_TEAL, "----------------------------------------------------------------------------");
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : warning 217: loose indentation
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 001: expected token: ",", but found "�"
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 029: invalid expression, assumed zero
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : error 029: invalid expression, assumed zero
C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes\RoPlayersGM.pwn(20197) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[Finished in 11.4s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'C:\\Users\\SpriteTV\\Desktop\\GMROPLAYERS\\gamemodes\\RoPlayersGM.pwn', '-;+']]
[dir: C:\Users\SpriteTV\Desktop\GMROPLAYERS\gamemodes]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\SpriteTV\AppData\Local\Microsoft\WindowsApps;]

 

Link to comment
Share on other sites

  • 0

atunci e posibil ca textdraw-ul sa nu suporte atata string, incearca sa faci 2a

Citat
Link to comment
Share on other sites

  • 0

jumate din text pui intr-un textdraw si jumate in altul

Citat
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.