31.12.2014, 20:07
if (strcmp(ParameterName, "Company", false) == 0) // If the parametername is correct ("Company")
{
if (strcmp(ACompanyData[strval(ParameterValue)][Owner], Name, false) == 0) // Check if the player is the true owner of the Company
{
ComIndex++; // Select the next Company-slot in case another Company-id is found
}
}
{
if (strcmp(ACompanyData[strval(ParameterValue)][Owner], Name, false) == 0) // Check if the player is the true owner of the Company
{
pawn Код:
APlayerData[playerid][Company][ComIndex] = strval(ParameterValue); // Store the CompanyID at the selected slot
}
}