SA-MP Forums Archive
PPC File Operations Int Var addition - 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: PPC File Operations Int Var addition (/showthread.php?tid=366071)



PPC File Operations Int Var addition - Ballu Miaa - 05.08.2012

Hello everyone,

I was adding features to a game mode of a Client. The game mode is a Rip of PPC_Trucking game mode. The game mode uses PPC_FileOperations.inc to create/load/save PlayerFile.

I tried to add a new integer variable with the name 'Logistics' with the format it is done within the include. But i failed.
It doesnt work the way i did. The Server crashes and doesnt create a file.

Do anyone know how to add a new integer variable for a player to be created/saved/load within the server using the PPC_FileOperations.inc?

The game mode uses the array APlayerData for the Player Data storage. And it is not defined within the game mode nor even within the include. I dont know where is it? I dont know how does this include is actually working?

if anyone can alter the include for my use , will be real awesome or can explain me features of it so that i can add more variables. Will appreciate it a lot.

Thanks
Ballu Miaa



Re: PPC File Operations Int Var addition - ReneG - 05.08.2012

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
I tried to add a new integer variable with the name 'Logistics' with the format it is done within the include. But i failed.
It doesnt work the way i did. The Server crashes and doesnt create a file.
Show the code, I've just downloaded the include and it is really simple.
Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
The game mode uses the array APlayerData for the Player Data storage. And it is not defined within the game mode nor even within the include. I dont know where is it? I dont know how does this include is actually working?
If the compiler doesn't complain about APlayerData being undefined, then don't be fooled. The array APlayerData is SOMEWHERE lurking in one of the includes.


Re: PPC File Operations Int Var addition - Ballu Miaa - 05.08.2012

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
Show the code, I've just downloaded the include and it is really simple.

If the compiler doesn't complain about APlayerData being undefined, then don't be fooled. The array APlayerData is SOMEWHERE lurking in one of the includes.
I can not show the code anymore as i deleted the altered include because of no usage.

Allright i have the Original Include now. Tell me how to add a integer variable in the PlayerData


Re: PPC File Operations Int Var addition - Ballu Miaa - 06.08.2012

By the way what is the file reader/writer used in PPC_Trucking? Its a custom one i guess. Isnt a released one?

Do anyone know how to add a integer variable for a player in this game mode? Been trying to figure it out but got nothing yet.


Re: PPC File Operations Int Var addition - Ballu Miaa - 17.08.2012

Bumping it After some days [it is Allowed after 48 hours].

Is there Anyone who can help solve this problem?