Jump to content
  • 0

pomoc Změna barvy auta


skyte

Dotaz

5 odpovědí na tuto otázku

Recommended Posts

  • 0


#include a_samp
#include zcmd

CMD:carcolor(playerid,params[]){
new c1,c2;
if(sscanf(params,"ii",c1,c2)) return SCM(playerid,-1," Použtí: /carcolor [0-255] [0-255]");
else if(c1 < 0 || c1 > 255) return SCM(playerid,-1,"Rozmezí barev je [0-255]");
else if(c2 < 0 || c2 > 255) return SCM(playerid,-1,"Rozmezí barev je [0-255]");
ChangeVehicleColor(GetPlayerVehicleID(playerid),c1, c2);
return 1;
}

 

Link to comment
Share on other sites

  • 0
C:\Users\Filip\Desktop\Barva.pwn(6) : error 017: undefined symbol "sscanf"

C:\Users\Filip\Desktop\Barva.pwn(6) : error 017: undefined symbol "SCM"

C:\Users\Filip\Desktop\Barva.pwn(7) : error 017: undefined symbol "SCM"

C:\Users\Filip\Desktop\Barva.pwn(8) : error 017: undefined symbol "SCM" 

 

.... ? ;)

Link to comment
Share on other sites

  • 0
  • Globální moderátor

 

C:\Users\Filip\Desktop\Barva.pwn(6) : error 017: undefined symbol "sscanf"
C:\Users\Filip\Desktop\Barva.pwn(6) : error 017: undefined symbol "SCM"
C:\Users\Filip\Desktop\Barva.pwn(7) : error 017: undefined symbol "SCM"
C:\Users\Filip\Desktop\Barva.pwn(8) : error 017: undefined symbol "SCM" 
 
.... ? ;)

 

stiahni si include sscanf a namiesto "SCM" daj "SendClientMessage"

Link to comment
Share on other sites

  • 0

#include a_samp
#include zcmd
#include sscanf
#define SCM SendClientMessage

CMD:carcolor(playerid,params[]){
new c1,c2;
if(sscanf(params,"ii",c1,c2)) return SCM(playerid,-1," Použtí: /carcolor [0-255] [0-255]");
else if(c1 < 0 || c1 > 255) return SCM(playerid,-1,"Rozmezí barev je [0-255]");
else if(c2 < 0 || c2 > 255) return SCM(playerid,-1,"Rozmezí barev je [0-255]");
ChangeVehicleColor(GetPlayerVehicleID(playerid),c1, c2);
return 1;
}
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
×
×
  • Create New...