07.03.2014, 15:23
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; }