SA-MP Forums Archive
Unknown command on this script. - 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: Unknown command on this script. (/showthread.php?tid=283669)



Unknown command on this script. - Jack_Leslie - 16.09.2011

pawn Код:
if(PlayerInfo[giveplayerid][pVehicle] == 1) //owns a car
                        {
                            new car = GetCarIDFromPlayer(playerid);
                            strmid(CarInfo[car][vOwner], tmp, 0, strlen(tmp), 255);
                            SaveCars();
                        }
That makes the command unknown, and stops at that part.


Re: Unknown command on this script. - MisterTickle - 16.09.2011

Put Printf's on each individual line to wean it down to one specific line.


Re: Unknown command on this script. - Jack_Leslie - 16.09.2011

Quote:
Originally Posted by MisterTickle
Посмотреть сообщение
Put Printf's on each individual line to wean it down to one specific line.
Okay it stopped at:
pawn Код:
strmid(CarInfo[car][vOwner], tmp, 0, strlen(tmp), 255);
If i change the players name to what it is in CarInfo[car][vOwner] then it does the command, so like if I changed Henrys name to Bob, then it would change his name to Bob but stop at that code ^. But then if I changed Bob back to Henry, it would work 100%..