error 079: inconsistent return types (array & non-array)
#4

it's because you used = in the else if statements instead of ==

Though switch is better:
PHP код:
GetPlayerGang(id)
{
    new 
string[20];
    switch (
PlayerInfo[id][pGang])
    {
        case 
601string "GANG_GROVES";
        case 
602string "GANG_BALLAS";
        case 
603string "GANG_AZTECAS";
        case 
604string "GANG_VAGOS";
        case 
605string "GANG_TRIADS";
        case 
606string "GANG_DA_NANG_BOYS";
        case 
607string "GANG_RIFAS";
        case 
608string "GANG_RUSSIAN_MAFIAS";
        case 
609string "GANG_ITALIAN_MAFIAS";
        case 
610string "GANG_BIKER";
    }
    return 
string;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)