27.09.2018, 16:16
Quote:
Код:
TruckerTogetther[playerid] = INVALID_PLAYER_ID; TruckerTogetther[TruckerTogetther[playerid]] = INVALID_PLAYER_ID; That's your index out of bounds error. Store the first value in a local variable, then reset it for playerid and after that use the local variable to reset the other player's TruckerTogetther index. |
Код:
new mypoint = -1; for (new i=0; i<MAX_POINTS; i++) { if(strcmp(Points[i][Name], "LOS SANTOS Docks", true) == 0) { mypoint = i; } } for(new i = 0; i < sizeof(FamilyInfo); i++) { if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0) { Misc_Save(); FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200); } } }
Код:
if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)