31.12.2014, 19:29
Hello,
So today I decided to do Companies in my Trucking server which runs PPC_Trucking.
I did everything then compiled and I get these errors:
pawno\include\PPC_FileOperations.inc(190) : warning 215: expression has no effect
pawno\include\PPC_FileOperations.inc(190) : error 001: expected token: ";", but found "["
pawno\include\PPC_FileOperations.inc(190) : error 029: invalid expression, assumed zero
pawno\include\PPC_FileOperations.inc(190) : warning 215: expression has no effect
pawno\include\PPC_FileOperations.inc(190) : error 001: expected token: ";", but found "]"
All of these are in the saving system.
I have no idea what is the problem, here is the full function too:
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
{
APlayerData[playerid][Company][ComIndex] = strval(ParameterValue); // Store the CompanyID at the selected slot
ComIndex++; // Select the next Company-slot in case another Company-id is found
}
}
I hope someone can give me suggestions on how to fix these errors.
Thank You.
So today I decided to do Companies in my Trucking server which runs PPC_Trucking.
I did everything then compiled and I get these errors:
pawno\include\PPC_FileOperations.inc(190) : warning 215: expression has no effect
pawno\include\PPC_FileOperations.inc(190) : error 001: expected token: ";", but found "["
pawno\include\PPC_FileOperations.inc(190) : error 029: invalid expression, assumed zero
pawno\include\PPC_FileOperations.inc(190) : warning 215: expression has no effect
pawno\include\PPC_FileOperations.inc(190) : error 001: expected token: ";", but found "]"
All of these are in the saving system.
I have no idea what is the problem, here is the full function too:
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
{
APlayerData[playerid][Company][ComIndex] = strval(ParameterValue); // Store the CompanyID at the selected slot
ComIndex++; // Select the next Company-slot in case another Company-id is found
}
}
I hope someone can give me suggestions on how to fix these errors.
Thank You.