Jump to content
  • 0

Problema scripting/erori


NuamNume

Question

Salut, vreau sa va rog daca ma puteti ajuta cu aceste erori. M-am chinuit 3 ore non-stop sau mai mult sa le rezolv, degeaba. Multumesc tuturor.

Erori: C:\Users\Raul\Downloads\Gamemode (1)\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(18869 -- 18870) : error 001: expected token: ",", but found "~"
C:\Users\Raul\Downloads\Gamemode (1)\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(18870) : warning 215: expression has no effect
C:\Users\Raul\Downloads\Gamemode (1)\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(18870) : error 001: expected token: ";", but found ")"
C:\Users\Raul\Downloads\Gamemode (1)\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(18870) : error 029: invalid expression, assumed zero
C:\Users\Raul\Downloads\Gamemode (1)\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(18870) : fatal error 107: too many error messages on one line

cod:                 format(string3, sizeof(string3), "PAYDAY~n~Played time: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d", PlayerInfo[pPayDay]/3600, FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]),
                FormatNumber(TaxValue), FormatNumber(rent), checks~TaxValue);
                PlayerTextDrawSetString(i, PaydayTD, string3);
                PlayerTextDrawShow(i, PaydayTD);

 

Va rog mult sa ma ajutati, multumesc all

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
1 hour ago, NuamNume said:

FormatNumber(rent), checks~TaxValue);

"~" nu are ce sa caute acolo.. 

incearca asa:

 

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

 

 

 

  • Thanks 1
Link to comment
Share on other sites

  • 0
1 hour ago, Gigel said:

"~" nu are ce sa caute acolo.. 

incearca asa:

 


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

 

 

 

Multumesc din tot sufletul, mai am doar o eroare.

error 035: argument type mismatch (argument 1)

Ma poti ajuta? Stiu ca cer mult dar mna...

Edited by NuamNume
greseli gramaticale
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.