09.11.2014, 15:04
Hey ive got a small problem that i cant figgure out. In this system the last bracket seems to not end the whole code section. Any sollutions? The bracket that dosent match or is uneseccary is marked red, sorry my bad english for now, have sleept bad. Cheers
Код:
for(new i = 0; i < MAX_GARAGES; i++) { if(!strcmp(name, GarageInfo[i][gOwner], false)) { if(gcheck != INVALID_GARAGE_ID) { gcheck = i; } } } if(gcheck != INVALID_GARAGE_ID) { PlayerInfo[playerid][pPgaragekey] = gcheck; } for(new i = 0; i < MAX_BUSINESSES; i++) { if(!strcmp(name, BizzInfo[i][bOwner], false)) { if(bcheck != INVALID_BIZZ_ID) { bcheck = i; } } } if(gcheck != INVALID_GARAGE_ID) { PlayerInfo[playerid][pPgaragekey] = gcheck; } } return 1; }