10.02.2019, 11:47
I probably sound kinda dumb using fwrite and I'll probably convert to mySQL or some other thing later on. However, how can I add more lines to the file? I've done it before but this time it won't let me.
Here is the code:
This is what it outputs when compiled:
undefined symbol "TruckerRank"
undefined symbol "PoliceRank"
undefined symbol "TruckerRank"
undefined symbol "PoliceRank"
What have I missed/done wrong? Thanks in advance.
Here is the code:
Код:
if (strcmp(ParameterName, "TruckerRank", false) == 0) APlayerData[playerid][TruckerRank], 50, strval(ParameterValue); if (strcmp(ParameterName, "PoliceRank", false) == 0) APlayerData[playerid][PoliceRank], 50, strval(ParameterValue);
Код:
format(LineForFile, sizeof(LineForFile), "TruckerRank %s\r\n", APlayerData[playerid][TruckerRank]);" fwrite(PFile, LineForFile); // And save it to the file format(LineForFile, sizeof(LineForFile), "PoliceRank %s\r\n", APlayerData[playerid][PoliceRank]);" fwrite(PFile, LineForFile); // And save it to the file
undefined symbol "TruckerRank"
undefined symbol "PoliceRank"
undefined symbol "TruckerRank"
undefined symbol "PoliceRank"
What have I missed/done wrong? Thanks in advance.