public OnPlayerText(playerid, text[])
#1

Why does pawno crash when i try to compile this callback?

Код:
public OnPlayerText(playerid, text[])
{
    new message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    ProxDetector(30.0, playerid, message, -1);
    }
        case 0: ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
        case 1: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkA", 3.1,0,1,1,1,1);
        case 2: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkB", 3.1,0,1,1,1,1);
        case 3: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkC", 3.1,0,1,1,1,1);
        case 4: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkD", 3.1,0,1,1,1,1);
        case 5: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkE", 3.1,0,1,1,1,1);
        case 6: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkF", 3.1,0,1,1,1,1);
        case 7: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkG", 3.1,0,1,1,1,1);
        case 8: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkH", 3.1,0,1,1,1,1);
		}
        new time=strlen(text)*100;
        SetTimerEx("StopTalking",time,0,"i",playerid);
	    }
        return 1;
}
Reply
#2

Look at your braces. There's no conditional statement to follow with them.
Reply
#3

1) There's no switch.
2) You're not opening so why close?
Reply
#4

You didnt open any yhing to close it....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)