08.08.2011, 15:12
hello all I need help with this code.. So I have 3 skins in one gang but how can I do it?
and here
Thank you for your time
and have a good day
I hope you will help me.
I know return 0;//is not like it need to be.. but when I'm trying to fix it nothing change.. idk how to do it right.. All time I can fix the errors almost by my self but now with this I'm stuck..
Код:
warning 206: redundant test: constant expression is non-zero //error 1 warning 217: loose indentation //error 2
Код:
else if (skin == 105, 106, 107) //error 1 is here //Change the 164 According to the Gang So Lets Say gang1 guy skin is 164, This Will Define That 164 is part of gang 3 { pTeam[playerid] = team_GROVEST; SetPlayerTeam(playerid, 1);//Change the id according to gang }
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '!') { new name[24], string[256]; GetPlayerName(playerid, name, 24); format(string, sizeof(string), "[TEAM]%s: %s", name, text[1]); for(new c = 0; c < MAX_PLAYERS; c++) { if(IsPlayerConnected©) { if(GetPlayerTeam© == GetPlayerTeam(playerid)) SendClientMessage(c, GetPlayerColor(playerid), string); } } return 0; //error 2 here } return 1; }


I know return 0;//is not like it need to be.. but when I'm trying to fix it nothing change.. idk how to do it right.. All time I can fix the errors almost by my self but now with this I'm stuck..