Jump to content

Question

Posted

Salut ,ma tot chinui sa rezolv aceste warning-uri..

C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23605) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23612) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23619) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23626) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23633) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23640) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23647) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23660) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23667) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23674) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23681) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23688) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23695) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23702) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23715) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23722) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23729) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23736) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23743) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23750) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\BLACKWEED\gamemodes\T4P.pwn(23757) : warning 202: number of arguments does not match definition

 

Liniile la care da eroarea sunt toate de acelasi fel adica asa :

 if(listitem == 0)
                {
         	    CreateVehicle(462, 925.6184,-998.2622,37.8919, -1, -1, 60);
                GivePlayerMoney(playerid, -200000);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "Felicitari ai cumparat un faggio!");
                return 1;
                }

da eroare la CreateVehicle .. sunt aseazate in gm cum trebuie.

2 answers to this question

Recommended Posts

  • 0
Posted
CreateVehicle(462, 925.6184,-998.2622,37.8919, -1, -1, 60);

aici ai eroare

(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay)// asta este varianta corecta de pe wiki

iti lipseste acest parametru Float:rotation

 

Deci adauga 0 intre 37.8919  si -1 adica asa, sau rotatia care o doresti tu nu neaparat 0

    CreateVehicle(462, 925.6184,-998.2622,37.8919,0, -1, -1, 60);
              

 

Sau poti folosi  GetPlayerFacingAngle

new Float:Angle;
GetPlayerFacingAngle(playerid, Angle);

 

si apoi sa modifici in 

CreateVehicle(462, 925.6184,-998.2622,37.8919,Angle, -1, -1, 60);

 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

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.