Help with player info - 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: Help with player info (
/showthread.php?tid=564535)
Help with player info -
HighHP - 22.02.2015
so when I go to add something else to the players info, eg. pRCar, everything else in the playersinfo won't work, like pAdmin will rep if you help
Re: Help with player info -
1fret - 22.02.2015
show us the code with padmin and all that
Re: Help with player info -
CalvinC - 22.02.2015
Remember if it's not the last thing in the enumerator, you need to use "," on the end of pRCar.
Otherwise show the enumerator, and how you are trying to add pRCar to it.
Re: Help with player info -
HighHP - 23.02.2015
enum pInfo
{
pKey[32],
pReg,
pCash,
pSkin,
pAdmin,
pRCar,
};
Re: Help with player info -
zork - 23.02.2015
What CalvinC said, that's exactly what happens.
It should look like this:
PHP код:
enum pInfo
{
pKey[32],
pReg,
pCash,
pSkin,
pAdmin,
pRCar
};
Don't put a comma at the end of the last thing, never. So, if you want to add another you'd do it like this:
PHP код:
enum pInfo
{
pKey[32],
pReg,
pCash,
pSkin,
pAdmin,
pRCar, // Now the previously one that was the last will have now a comma (,).
pNEW // The new one won't have a comma.
};
Re: Help with player info -
HighHP - 14.03.2015
Still messes up