SA-MP Forums Archive
hi can someone please help me fix this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: hi can someone please help me fix this (/showthread.php?tid=473216)



hi can someone please help me fix this - UrBoyJay - 01.11.2013

Код:
dcmd_vbike(playerid, params[])
{
        if(pInfo[playerid][VIPlevel] < 3) return SCM(playerid, COLOR_RED, "You need to be Bronze VIP player to use this!");
        new
		col[2],vehicle;
        if(sscanf(params, "iii",vehicle,col[0],col[1])) return SCM(playerid, COLOR_RED, "Usage: /vbike [Bike ID] [Color 1] [Color 2]");
        if(vehicle == 461 || vehicle == 463 || vehicle == 468 || vehicle == 521 || vehicle == 522) {
        Cars(playerid, vehicle,col[0],col[1]); }
		return 1;
}
Код:
error 017: undefined symbol "Cars"



Re: hi can someone please help me fix this - jakejohnsonusa - 01.11.2013

Well, what the heck is this...?

Cars(playerid, vehicle,col[0],col[1]);


Re: hi can someone please help me fix this - UrBoyJay - 01.11.2013

i was trying to remake this cmd
Quote:

YCMD:vbike(playerid, params[], help)
{
#pragma unused help
if(P_Data[playerid][VIP] == 0) return SCM(playerid, COLOR_RED, "You need to be Bronze VIP player to use this!");
new
col[2],vehicle;
if(sscanf(params, "iii",vehicle,col[0],col[1])) return SCM(playerid, COLOR_RED, "Usage: /vbike [Bike ID] [Color 1] [Color 2]");
if(vehicle == 461 || vehicle == 463 || vehicle == 468 || vehicle == 521 || vehicle == 522) {
Cars(playerid, vehicle,col[0],col[1]); }
return 1;
}




Re: hi can someone please help me fix this - NeMoK - 03.11.2013

pawn Код:
new Bike[MAX_PLAYERS];
Cars(playerid, vehicle,col1,col2)
{
new Float:x,Float:y,Float:z;
new Float:Angle;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,Angle);
Bike[playerid]=CreateVehicle(vehicle, x,y,z, Angle, col1,col2, -1);
PutPlayerInVehicle(playerid,Bike[playerid],0);

}