07.06.2015, 14:47
it's because you used = in the else if statements instead of ==
Though switch is better:
Though switch is better:
PHP код:
GetPlayerGang(id)
{
new string[20];
switch (PlayerInfo[id][pGang])
{
case 601: string = "GANG_GROVES";
case 602: string = "GANG_BALLAS";
case 603: string = "GANG_AZTECAS";
case 604: string = "GANG_VAGOS";
case 605: string = "GANG_TRIADS";
case 606: string = "GANG_DA_NANG_BOYS";
case 607: string = "GANG_RIFAS";
case 608: string = "GANG_RUSSIAN_MAFIAS";
case 609: string = "GANG_ITALIAN_MAFIAS";
case 610: string = "GANG_BIKER";
}
return string;
}