Jump to content
  • 0

Salut ,Sunt nou in scripting si as vrea sa ma ajutati sa rezolv un warning


Question

Posted

Salut, am facut o comanda /bonus si primesc un warning,nu stiu din ce cauza poate ma puteti ajuta.Las warning-ul mai jos.MULTUMESC ANTICIPAT!

 

C:\Users\Alexxx\Desktop\for sa-mp.ro\gamemodes\DarkNight.pwn(18138) : warning 202: number of arguments does not match definition

 

bandicam 2021-07-27 13-31-08-862.jpg

3 answers to this question

Recommended Posts

  • 0
Posted

Cauti in gm tau functia GivePlayerCash si vezi cati si ce parametri ai si revi la comanda ta si corectezi linia 18138 adaugand/stergand parametri respectivi

  • 0
Posted (edited)

Si vezi ca ai facut comanda cu zcmd si vad mai jos ca tu ai y_commands.
Modifica CMD:bonus(playerid, params[]) in YCMD:bonus(playerid, params[], help)

Cat despre GivePlayerCash, cred ca stiu ce GM ai si trebuie sa pui GivePlayerCash(playerid, 1, 10000000); (1 insemnand ca ii adauga bani, daca era 0 ii scotea din bani)  Dar verifica totusi functia ca sa fi sigur.

Edited by Akan

Discord:
! Akan !#6675

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.