error 047: array sizes do not match, or destination array is too small
#9

Please, don't abuse of the 'stocks', read more of this in: https://sampforum.blast.hk/showthread.php?tid=570635

Replace old function with this.

PHP код:
GetPlayerTeamName(playerid)
{
    new 
szString[24];
    switch(
GetPlayerTeam(playerid))
    {
        case 
TEAM_USAszString "United States";
        case 
TEAM_CANADAszString "Canada";
        case 
TEAM_BRITAINszString "Britain";
        case 
TEAM_AUSTRALIAszString "Australia";
        case 
TEAM_RUSSIAszString "Russia";
        case 
TEAM_GERMANYszString "Germany";
        case 
TEAM_ITALYszString "Italy";
        case 
TEAM_FRANCEszString "France";
        case 
TEAM_CHINAszString "China";
        case 
TEAM_INDIAszString "India";
    }
    return 
szString;

I recommend analyzing the functions so that you can learn, search the forum for tutorials on the use of the switch, it is really useful and fast compared to if
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)