Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Problema PayDay textdraw.


Question

Posted

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;]

 

8 answers to this question

Recommended Posts

  • 0
Posted

ai uitat o virgula 

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

trebuie

Total money: $%d",PlayerInfo[i][
Citat
  • 0
Posted
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;]

 

  • 0
Posted

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
  • 0
Posted
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;]

 

  • 0
Posted
Acum 6 ore, SherKan a spus:

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

adica.

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

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.