Jump to content

[REZOLVAT] Problema vehicleid


FanReborn
 Share

Recommended Posts

  • Username:Sahoooo
  • Problema întălnită:Imi da o erroare la compilare
  • Detalii despre problemă:Incerc sa compilez gm-ul Learn-Times dar imi da o erroare
  • Ce ai încercat să faci înainte să postezi?:Am incercat sa rezolv singur problema dar nu am reusit asa ca am cautat pe diferite site-uri rezolvarea dar nu am gasit nimic
  • Cod sursă (recomandat pastebin.com) : https://pastebin.com/9xninZVG
  • Alte detalii:  Errorile: C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(6823) : error 003: declaration of a local variable must appear in a compound block
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(6823) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(6956) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(6968) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7023) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7025) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7027) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7027) : error 076: syntax error in the expression, or invalid function call
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7032) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7034) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7036) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7036) : error 076: syntax error in the expression, or invalid function call
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7042) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7163) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7164) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7165) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7165) : warning 215: expression has no effect
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7175) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7176) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7177) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7177) : warning 215: expression has no effect
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7181) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7183) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7184) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7185) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7187) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7188) : error 017: undefined symbol "vehicleid"
    C:\Users\Windows 7\Desktop\learn_times\gamemodes\gm.pwn(7189) : error 017: undefined symbol "vehicleid"

     
Link to comment
Share on other sites

  • Retired

Pune acoladele alea ca lumea .. 

 

{

// Asta este "compound block"

}

 

Tu ai ceva de genu: 

 

if(newstate == PLAYER_STATE_DRIVER) 

// compound block missing ( sa fiu mai explicit nu ai { ) 

}

 

Ai nevoie de: 

 

if(newstate == PLAYER_STATE_DRIVER) 

{

 

}

 

Sper ca ai inteles .. 

 

Fa codu' ala calumea si defineste sus langa string, vehicleid. 

 

new string[256], vehicleid = GetPlayerVehicelID(playerid); 

 

Daca ai probleme da-mi quote, ti-as fi lasat eu tot codu' cu explicatie in el daca il lasai complet, adica tot public-ul .

 

Link to comment
Share on other sites

La 09.09.2018 la 19:25, Dennis12 a spus:

Pune acoladele alea ca lumea .. 

 

{

// Asta este "compound block"

}

 

Tu ai ceva de genu: 

 

if(newstate == PLAYER_STATE_DRIVER) 

// compound block missing ( sa fiu mai explicit nu ai { ) 

}

 

Ai nevoie de: 

 

if(newstate == PLAYER_STATE_DRIVER) 

{

 

}

 

Sper ca ai inteles .. 

 

Fa codu' ala calumea si defineste sus langa string, vehicleid. 

 

new string[256], vehicleid = GetPlayerVehicelID(playerid); 

 

Daca ai probleme da-mi quote, ti-as fi lasat eu tot codu' cu explicatie in el daca il lasai complet, adica tot public-ul .

 

ms

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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