Sziasztok, a címből megállapítható a hibaüzenet: 213: tag mismatch.
Látható, hogy melyik sorra dobja a hibát, előre is köszönöm a segítséget.
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0) /// --- 2013: tag mismitch
{
PlayerInfo[playerid][pPlate1] = 0;
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,\"data\");
INI_WriteInt(File, \"Plate1\", PlayerInfo[playerid][pPlate1]);
INI_Close(File);
}
else if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate2]) == 0) /// 2013: tag mismitch
{
PlayerInfo[playerid][pPlate2] = 0;
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,\"data\");
INI_WriteInt(File, \"Plate2\", PlayerInfo[playerid][pPlate2]);
INI_Close(File);
}
else if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate3]) == 0) /// 2013: tag mismitch
{
PlayerInfo[playerid][pPlate3] = 0;
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,\"data\");
INI_WriteInt(File, \"Plate3\", PlayerInfo[playerid][pPlate3]);
INI_Close(File);
}
Dupla hozzászólás automatikusan összefûzve. ( 2015. Október 23. - 04:13:24 )
Ha minden igaz sikerült megoldanom, viszont nem vagyok benne biztos, hogy helyes. Warningot nem ír rá de azért ha lehet szeretnék megerősítést kapni, hogy jó így.
Megoldás:
Rossz:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0)
Jó:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1], false))
if(valami == false)
if(valami == 0)
if(!valami)
! = negáció (tagadás)
tehát ha elé !-et raksz vagy utána == 0-t akkor ugyanaz lesz a kimenet...ellenőrzi, hogy 0 az értéke...
te itt mind2-t raktál az volt a gond:
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1]) == 0)
if(!strcmp(VehicleNumberPlate[id], PlayerInfo[playerid][pPlate1], false))
itt a végén a false arra vonatkozik, hogy a kis-nagybetű között ne tegyen különbséget
http://wiki.sa-mp.com/wiki/Strcmp
ignorecase (optional) When set to true, the case doesn\'t matter - HeLLo is the same as Hello. When false, they\'re not the same.[/quote]