ChangeVehiclePaintJob not working? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ChangeVehiclePaintJob not working? (
/showthread.php?tid=68911)
ChangeVehiclePaintJob not working? -
TheAngel105 - 14.03.2009
I made a command to change the player's vehicle paint job to 0.
Here it is:
pawn Код:
if(strcmp(cmd, "/paint", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
ChangeVehiclePaintJob(vehicleid, 0);
}
else return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to be in a vehicle!");
return 1;
}
But I get the errors:
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\gamemodes\TWoS.pwn(1479) : error 017: undefined symbol "ChangeVehiclePaintJob"
C:\Program Files\Rockstar Games\GTA San Andreas\server\gamemodes\TWoS.pwn(1475) : warning 204: symbol is assigned a value that is never used: "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Edit:
My stupidity level is over 9000 o_O
Re: ChangeVehiclePaintJob not working? -
Sandra18[NL] - 14.03.2009
The "J" from ChangeVehiclePaint
job should be lower-case.
https://sampwiki.blast.hk/wiki/ChangeVehiclePaintjob
Re: ChangeVehiclePaintJob not working? -
ICECOLDKILLAK8 - 14.03.2009
pawn Код:
if(strcmp(cmd, "/paint", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 0);
}
else return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to be in a vehicle!");
return 1;
}
The J needs to be lower case and you dont need the vehicle ID in a variable
EDIT: Sandra said about the J first
Re: ChangeVehiclePaintJob not working? -
_TeRmiNaToR_ - 14.03.2009
pawn Код:
if(strcmp(cmd, "/paint", true) == 0){
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, COLOR_RED, "You need to be in a vehicle!");
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), 0);
return 1;
}
Re: ChangeVehiclePaintJob not working? -
MenaceX^ - 14.03.2009
I don't understand why you said it's not working and you just get errors..
Re: ChangeVehiclePaintJob not working? -
TheAngel105 - 14.03.2009
Yes I know, that's why I said i'm stupid