07.02.2013, 00:02
pawn Код:
strcat(PlayerInfo[playerid][pFishName1], FishNames[FishName]);
under FishNames[FishName] I have "Clownfish", "Shark" etc.
strcat(PlayerInfo[playerid][pFishName1], FishNames[FishName]);
new FishName = random(sizeof(FishNames));
FishName[FishNames]
new FishNames[][] =
{
"Shark",
"Clownfish",
"Angelfish",
"Catfish",
"Dogfish",
"Eel"
};
enum pInfo
{
pLevel,
pGender,
pCash,
pBank,
pJob,
pBirthDate,
pBirthMonth,
pBirthYear,
pAdminLevel,
pAdminDuty,
pSkin,
pFishPermit,
pFish1,
pFish2,
pFish3,
pFish4,
pFish5,
pFishes,
Float:pPosX,
Float:pPosY,
Float:pPosZ,
Float:pPosA,
pRegistered,
pFishName1,
pFishName2,
pFishName3,
pFishName4,
pFishName5,
pFishNames,
pFishingRod,
pRodDurab,
pBait
}
enum pInfo
{
pLevel,
pGender,
pCash,
pBank,
pJob,
pBirthDate,
pBirthMonth,
pBirthYear,
pAdminLevel,
pAdminDuty,
pSkin,
pFishPermit,
pFish1,
pFish2,
pFish3,
pFish4,
pFish5,
pFishes,
Float:pPosX,
Float:pPosY,
Float:pPosZ,
Float:pPosA,
pRegistered,
pFishName1[16],
pFishName2[16],
pFishName3[16],
pFishName4[16],
pFishName5[16],
pFishNames,
pFishingRod,
pRodDurab,
pBait
}