Jump to content

problema sistem rent car


cristi2k
 Share

Recommended Posts

rent carC:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(360) : warning 209: function "RentCar" should return a value
C:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(6844) : error 014: invalid statement; not in switch
C:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(6844) : warning 215: expression has no effect
C:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(6844) : error 001: expected token: ";", but found ":"
C:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(6844) : error 029: invalid expression, assumed zero
C:\Users\grati\Desktop\gamemode by skillz\gamemodes\gmm.pwn(6844) : fatal error 107: too many error messages on one line

ce ar trebui sa fac la asta ?

Link to comment
Share on other sites

Banuiesc ca ai copiat de undeva chestiile astea, ma rog.

1. Ideea e ca pentru a folosi "case" in loc de "if" ai nevoie si de "switch". (pentru ca iti si spune chestia asta in compiler) 

2. Deci, prin urmare: deasupra de "// sistem rent car ..." adaugi switch(dialogid), apoi selectezi ambele tale dialoguri si apesi tasta "TAB". Apoi inchizi cu o alta acolada pentru continutul din "switch". 

3. Sper ca ai inteles, daca nu, posteaza publicul OnDialogResponse pe pastebin si o sa ti-l fac eu.

 

Uite si un link din care sper ca vei intelege mai multe: https://forum.sa-mp.com/showthread.php?t=429357

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...