Info loads into another enum
#1

Hello,
when i run this code, the info goes in another enum and overwrites.

PHP код:
        else if(!strcmp(tmp"factionize"true9))
        {
            new 
query[200];
            new 
vehicleid GetPlayerNearestVehicle(playerid);
            new 
factionid strlen(tmp2);
            if(
GetDistanceFromPlayerToVehicle(playeridvehicleid) > 5.0)
            return 
SendClientError(playerid"There is no vehicle around you!");
            if(!
strlen(tmp2)) return SendClientUsage(playerid"/av factionize [FactionID]");
            
format(query,sizeof(query),"UPDATE vehicles SET vOwner='%s',vFaction='%i' WHERE id='%i'",Faction1337[factionid][factionName],factionid,vehicleid);
            
mysql_tquery(connection,query,"");
            
myStrcpy(Vehicle[vehicleid][vOwner], Faction1337[factionid][factionName]);
            
Vehicle[vehicleid][vFaction] = factionid;
            
SendStaffMessage(playerid,sprintf("This %s has been factionized for faction %s",GetVehicleName(vehicleid),Faction1337[factionid][factionName]));
        } 
When i remove this:
PHP код:
myStrcpy(Vehicle[vehicleid][vOwner], Faction1337[factionid][factionName]); 
Then it doesn't occur anymore.
What did i do wrong here?
Reply
#2

bumperinos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)