Jump to content
  • 0

EdeR

Question

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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