Posts: 302
Threads: 72
Joined: Dec 2009
how i can add so it says owned by [player's name] from folder..
SendClientMessage(playerid,0xFF0000,"This vehicle is owned by [player's name] ");
and exit player out the car?
Posts: 302
Threads: 72
Joined: Dec 2009
Quote:
Originally Posted by Shockey HD
pawn Код:
new String[128]; // Imma use string size 128
format(String, sizeof String("This vehicle is owned by %s", vData[vehicleid][pOwner]); // Im going to use vData[vehicleid][pOwner] as a example
SendClientMessage(playerid, 0xFF0000, String);
I suggest storing data into enums,
then just calling them from the enum..
|
How i can make it work with a folder?
for example... Extreme Stunting\scriptfiles\Cars and the file..
Posts: 302
Threads: 72
Joined: Dec 2009
04.02.2014, 05:01
(
Последний раз редактировалось eblood1; 04.02.2014 в 06:05.
Причина: wrong.
)
Deleted
Posts: 302
Threads: 72
Joined: Dec 2009
i added this but it says the player name not the owner's :/ help?
Код:
GetPlayerName(playerid, pname, sizeof(pname));
new file[256], String[256];format(String,sizeof(String),"This car is Owned by %s", pname, dini_Get(file, "Cars/%.sav"));
SendClientMessage(playerid, 0xFF0000, String);
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
Sorry for being such a preacher, but..
You are possibly not a person well acquainted with PAWN, and/or it's SA-MP implementation - and the thing you want to do requires knowledge about running file systems, using them and so on. Check the functions used (INI_Get, YINI_Get) and then search for the appropiate file system, learn HOW to use it, and then you'll be able to do it. Frankly, given your knowledge (I am assuming, sorry!) you should take up something simpler. Check out tutorials on files on the forums. Because - no one can provide you with the EXACT solution since no one has the script you have! If you have downloaded it, ask it in the respective thread.
Cheers
Posts: 302
Threads: 72
Joined: Dec 2009
Quote:
Originally Posted by Rajat_Pawar
Sorry for being such a preacher, but..
You are possibly not a person well acquainted with PAWN, and/or it's SA-MP implementation - and the thing you want to do requires knowledge about running file systems, using them and so on. Check the functions used (INI_Get, YINI_Get) and then search for the appropiate file system, learn HOW to use it, and then you'll be able to do it. Frankly, given your knowledge (I am assuming, sorry!) you should take up something simpler. Check out tutorials on files on the forums. Because - no one can provide you with the EXACT solution since no one has the script you have! If you have downloaded it, ask it in the respective thread.
Cheers
|
thats all i need it say it all there. i just need to know what i have to do to say the owner's name not the player that is taken the car.
Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
Do you even have a database and a scripted saving system?